mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
c5e1104a01
commit
b876c31ef5
@ -13,7 +13,7 @@ from calibre import prints
|
||||
|
||||
def option_parser():
|
||||
parser = OptionParser(usage=_('''\
|
||||
%prog [options]
|
||||
{0}
|
||||
|
||||
Various command line interfaces useful for debugging calibre. With no options,
|
||||
this command starts an embedded python interpreter. You can also run the main
|
||||
@ -25,10 +25,10 @@ on.
|
||||
|
||||
You can also use %prog to run standalone scripts. To do that use it like this:
|
||||
|
||||
%prog myscript.py -- --option1 --option2 file1 file2 ...
|
||||
{1}
|
||||
|
||||
Everything after the -- is passed to the script.
|
||||
'''))
|
||||
''').format('%prog [options]', '%prog myscript.py -- --option1 --option2 file1 file2 ...'))
|
||||
parser.add_option('-c', '--command', help=_('Run python code.'))
|
||||
parser.add_option('-e', '--exec-file', help=_('Run the python code in file.'))
|
||||
parser.add_option('-f', '--subset-font', action='store_true', default=False,
|
||||
|
@ -1539,7 +1539,7 @@ list of book ids matching the search expression. The output format is useful
|
||||
to feed into other commands that accept a list of ids as input.
|
||||
|
||||
The search expression can be anything from calibre's powerful search query
|
||||
language, for example: {}
|
||||
language, for example: {0}
|
||||
''').format('author:asimov title:robot'))
|
||||
parser.add_option('-l', '--limit', default=sys.maxsize, type=int,
|
||||
help=_('The maximum number of results to return. Default is all results.'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user