From 4db400e6bf6cf8968af38646c914186c3b629dde Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 10 Aug 2012 13:53:06 +0530 Subject: [PATCH] Fix --with-library=/whatever not working for calibredb list --- src/calibre/library/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/library/cli.py b/src/calibre/library/cli.py index 2b65ed37da..18ccbf2439 100644 --- a/src/calibre/library/cli.py +++ b/src/calibre/library/cli.py @@ -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)