Fix recover_database to use the right options parser

This commit is contained in:
Charles Haley 2010-10-04 10:19:09 +01:00
parent 6ade149cbd
commit 3c5e8c0291

View File

@ -971,14 +971,14 @@ def restore_database_option_parser():
files in each directory of the calibre library. This is files in each directory of the calibre library. This is
useful if your metadata.db file has been corrupted. 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. lose stored per-book conversion settings and custom recipes.
''')) '''))
return parser return parser
def command_restore_database(args, dbpath): def command_restore_database(args, dbpath):
from calibre.library.restore import Restore from calibre.library.restore import Restore
parser = saved_searches_option_parser() parser = restore_database_option_parser()
opts, args = parser.parse_args(args) opts, args = parser.parse_args(args)
if len(args) != 0: if len(args) != 0:
parser.print_help() parser.print_help()