Option for overriding encoding detection

This commit is contained in:
Kovid Goyal 2008-02-28 04:31:03 +00:00
parent 38a813953f
commit 9853ffaed3

View File

@ -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