Module PluginGenerator :: Class HelpFormatter
[hide private]
[frames] | no frames]

Class HelpFormatter

source code

    optparse.HelpFormatter --+    
                             |    
optparse.IndentedHelpFormatter --+
                                 |
                                HelpFormatter

Overrides the standard help formatter to make the output format suit our requirements. Nicked from Mathew Webber

Instance Methods [hide private]
 
__init__(self, width=80)
Make the output a bit wider than the default of 80.
source code
 
format_description(self, description)
The standard format_description() removes with the description, this version retains them.
source code

Inherited from optparse.IndentedHelpFormatter: format_heading, format_usage

Inherited from optparse.HelpFormatter: dedent, expand_default, format_epilog, format_option, format_option_strings, indent, set_long_opt_delimiter, set_parser, set_short_opt_delimiter, store_option_strings

Inherited from optparse.HelpFormatter (private): _format_text

Class Variables [hide private]

Inherited from optparse.HelpFormatter: NO_DEFAULT_VALUE

Method Details [hide private]

__init__(self, width=80)
(Constructor)

source code 

Make the output a bit wider than the default of 80.

Overrides: optparse.HelpFormatter.__init__

format_description(self, description)

source code 

       The standard format_description() removes 
with the description, this version retains them.
       

Overrides: optparse.HelpFormatter.format_description