mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-05 08:40:13 -04:00
Fix recover_database to use the right options parser
This commit is contained in:
parent
6ade149cbd
commit
3c5e8c0291
@ -971,14 +971,14 @@ def restore_database_option_parser():
|
||||
files in each directory of the calibre library. This is
|
||||
useful if your metadata.db file has been corrupted.
|
||||
|
||||
WARNING: This completely regenerates your datbase. You will
|
||||
WARNING: This completely regenerates your database. You will
|
||||
lose stored per-book conversion settings and custom recipes.
|
||||
'''))
|
||||
return parser
|
||||
|
||||
def command_restore_database(args, dbpath):
|
||||
from calibre.library.restore import Restore
|
||||
parser = saved_searches_option_parser()
|
||||
parser = restore_database_option_parser()
|
||||
opts, args = parser.parse_args(args)
|
||||
if len(args) != 0:
|
||||
parser.print_help()
|
||||
|
Loading…
x
Reference in New Issue
Block a user