This commit is contained in:
Kovid Goyal 2014-10-17 08:08:34 +05:30
parent c8f2a40bbd
commit bca48b4f2d
2 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ def generate_calibredb_help(preamble, app):
parser = getattr(cli, cmd+'_option_parser')(*args)
if cmd == 'catalog':
parser = parser[0]
lines += ['.. _calibredb-'+cmd+':', '']
lines += ['.. _calibredb-%s-%s:' % (app.config.language, cmd), '']
lines += [cmd, '~'*20, '']
usage = parser.usage.strip()
usage = [i for i in usage.replace('%prog', 'calibredb').splitlines()]

View File

@ -181,7 +181,7 @@ List the books available in the calibre database.
' special field "all" can be used to select all fields.'
)%', '.join(sorted(fields)))
parser.add_option('--sort-by', default=None,
help=_('The field by which to sort the results.\nAvailable fields: %s\nDefault: %%default')%','.join(sorted(FIELDS)))
help=_('The field by which to sort the results.\nAvailable fields: %s\nDefault: %%default')%', '.join(sorted(FIELDS)))
parser.add_option('--ascending', default=False, action='store_true',
help=_('Sort results in ascending order'))
parser.add_option('-s', '--search', default=None,