Fix --with-library=/whatever not working for calibredb list

This commit is contained in:
Kovid Goyal 2012-08-10 13:53:06 +05:30
parent f534935a78
commit 4db400e6bf

View File

@ -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)