mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
String fixes
This commit is contained in:
parent
25e69a4c97
commit
033a8a2421
@ -12,23 +12,23 @@ from calibre.constants import iswindows
|
|||||||
from calibre import prints
|
from calibre import prints
|
||||||
|
|
||||||
def option_parser():
|
def option_parser():
|
||||||
parser = OptionParser(usage='''\
|
parser = OptionParser(usage=_('''\
|
||||||
%prog [options]
|
%prog [options]
|
||||||
|
|
||||||
Various command line interfaces useful for debugging calibre. With no options,
|
Various command line interfaces useful for debugging calibre. With no options,
|
||||||
this command starts an embedded python interpreter. You can also run the main
|
this command starts an embedded python interpreter. You can also run the main
|
||||||
calibre GUI and the calibre viewer in debug mode.
|
calibre GUI, the calibre viewer and the calibre editor in debug mode.
|
||||||
|
|
||||||
It also contains interfaces to various bits of calibre that do not have
|
It also contains interfaces to various bits of calibre that do not have
|
||||||
dedicated command line tools, such as font subsetting, editing ebooks and so
|
dedicated command line tools, such as font subsetting, the ebook diff tool and so
|
||||||
on.
|
on.
|
||||||
|
|
||||||
You can also use %prog to run standalone scripts. To do that use it like this:
|
You can also use %prog to run standalone scripts. To do that use it like this:
|
||||||
|
|
||||||
%prog mysrcipt.py -- --option1 --option2 file1 file2 ...
|
%prog myscript.py -- --option1 --option2 file1 file2 ...
|
||||||
|
|
||||||
Everything after the -- is passed to the script.
|
Everything after the -- is passed to the script.
|
||||||
''')
|
'''))
|
||||||
parser.add_option('-c', '--command', help='Run python code.')
|
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('-e', '--exec-file', help='Run the python code in file.')
|
||||||
parser.add_option('-f', '--subset-font', help='Subset the specified font')
|
parser.add_option('-f', '--subset-font', help='Subset the specified font')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user