mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix --with-library=/whatever not working for calibredb list
This commit is contained in:
parent
f534935a78
commit
4db400e6bf
@ -165,7 +165,7 @@ List the books available in the calibre database.
|
||||
|
||||
def command_list(args, dbpath):
|
||||
pre = get_parser('')
|
||||
pargs = [x for x in args if x in ('--with-library', '--library-path')
|
||||
pargs = [x for x in args if x.startswith('--with-library') or x.startswith('--library-path')
|
||||
or not x.startswith('-')]
|
||||
opts = pre.parse_args(sys.argv[:1] + pargs)[0]
|
||||
db = get_db(dbpath, opts)
|
||||
|
Loading…
x
Reference in New Issue
Block a user