Clean up help text.

This commit is contained in:
Kovid Goyal 2007-05-25 18:41:53 +00:00
parent 166485b9a5
commit 17dfb24f7f
4 changed files with 9 additions and 8 deletions

View File

@ -3,6 +3,7 @@
<name>libprs500</name> <name>libprs500</name>
<comment></comment> <comment></comment>
<projects> <projects>
<project>ipython</project>
</projects> </projects>
<buildSpec> <buildSpec>
<buildCommand> <buildCommand>

View File

@ -33,7 +33,7 @@ You may have to adjust the GROUP and the location of the rules file to
suit your distribution. suit your distribution.
""" """
__version__ = "0.3.40" __version__ = "0.3.41"
__docformat__ = "epytext" __docformat__ = "epytext"
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>" __author__ = "Kovid Goyal <kovid@kovidgoyal.net>"

View File

@ -69,8 +69,8 @@ def option_parser(usage):
parser.add_option('-p', '--profile', default=PRS500_PROFILE, dest='profile', type='choice', parser.add_option('-p', '--profile', default=PRS500_PROFILE, dest='profile', type='choice',
choices=profiles, action='callback', callback=profile_from_string, choices=profiles, action='callback', callback=profile_from_string,
help='''Profile of the target device for which this LRF is ''' help='''Profile of the target device for which this LRF is '''
'''being generated. Default: ''' + profiles[0] + ''' '''being generated. Default: ''' + profiles[0] + \
Supported profiles: '''+', '.join(profiles)) ''' Supported profiles: '''+', '.join(profiles))
debug = parser.add_option_group('DEBUG OPTIONS') debug = parser.add_option_group('DEBUG OPTIONS')
debug.add_option('--verbose', dest='verbose', action='store_true', default=False, debug.add_option('--verbose', dest='verbose', action='store_true', default=False,
help='''Be verbose while processing''') help='''Be verbose while processing''')

View File

@ -1241,9 +1241,9 @@ def parse_options(argv=None, cli=True):
laf.add_option('--cover', action='store', dest='cover', default=None, \ laf.add_option('--cover', action='store', dest='cover', default=None, \
help='Path to file containing image to be used as cover') help='Path to file containing image to be used as cover')
laf.add_option('--font-delta', action='store', type='int', default=0, \ laf.add_option('--font-delta', action='store', type='int', default=0, \
help="""Increase the font size by 2 * FONT_DELTA pts and help="""Increase the font size by 2 * FONT_DELTA pts and """
the line spacing by FONT_DELTA pts. '''the line spacing by FONT_DELTA pts. '''
If FONT_DELTA is negative, the font size is decreased.""", """If FONT_DELTA is negative, the font size is decreased.""",
dest='font_delta') dest='font_delta')
laf.add_option('--disable-autorotation', action='store_true', default=False, laf.add_option('--disable-autorotation', action='store_true', default=False,
help='Disable autorotation of images.', dest='disable_autorotation') help='Disable autorotation of images.', dest='disable_autorotation')
@ -1260,11 +1260,11 @@ def parse_options(argv=None, cli=True):
chapter.add_option('--disable-chapter-detection', action='store_false', chapter.add_option('--disable-chapter-detection', action='store_false',
default=True, dest='chapter_detection', default=True, dest='chapter_detection',
help='''Prevent html2lrf from automatically inserting page breaks''' help='''Prevent html2lrf from automatically inserting page breaks'''
'''before what it thinks are chapters.''') ''' before what it thinks are chapters.''')
chapter.add_option('--chapter-regex', dest='chapter_regex', chapter.add_option('--chapter-regex', dest='chapter_regex',
default='chapter|book|appendix', default='chapter|book|appendix',
help='''The regular expression used to detect chapter titles.''' help='''The regular expression used to detect chapter titles.'''
'''It is searched for in heading tags. Defaults to %default''') ''' It is searched for in heading tags. Defaults to %default''')
chapter.add_option('--page-break-before', dest='page_break', default='h[12]', chapter.add_option('--page-break-before', dest='page_break', default='h[12]',
help='''If html2lrf does not find any page breaks in the ''' help='''If html2lrf does not find any page breaks in the '''
'''html file and cannot detect chapter headings, it will ''' '''html file and cannot detect chapter headings, it will '''