mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Option for overriding encoding detection
This commit is contained in:
parent
38a813953f
commit
9853ffaed3
@ -27,10 +27,6 @@ from libprs500 import setup_cli_handlers
|
|||||||
def option_parser():
|
def option_parser():
|
||||||
parser = lrf_option_parser('''Usage: %prog [options] mybook.txt\n\n'''
|
parser = lrf_option_parser('''Usage: %prog [options] mybook.txt\n\n'''
|
||||||
'''%prog converts mybook.txt to mybook.lrf''')
|
'''%prog converts mybook.txt to mybook.lrf''')
|
||||||
enchelp = 'Set the encoding used to decode ' + \
|
|
||||||
'the text in mybook.txt. Default is to try to autodetect.'
|
|
||||||
parser.add_option('-e', '--encoding', action='store', type='string', \
|
|
||||||
dest='encoding', help=enchelp, default=None)
|
|
||||||
parser.add_option('--debug-html-generation', action='store_true', default=False,
|
parser.add_option('--debug-html-generation', action='store_true', default=False,
|
||||||
dest='debug_html_generation', help='Print generated HTML to stdout and quit.')
|
dest='debug_html_generation', help='Print generated HTML to stdout and quit.')
|
||||||
return parser
|
return parser
|
||||||
|
Loading…
x
Reference in New Issue
Block a user