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)