schrodinger :: utils :: cmdline :: DelegatingIndentedHelpFormatter :: Class DelegatingIndentedHelpFormatter
[hide private]
[frames] | no frames]

Class DelegatingIndentedHelpFormatter

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

An IndentedHelpFormatter class that allows an Option class to alter its own option string if it has a process_option_strings method.

Instance Methods [hide private]
 
format_option_strings(self, option)
Return a formatted option string.

Inherited from optparse.IndentedHelpFormatter: __init__, format_heading, format_usage

Inherited from optparse.HelpFormatter: dedent, expand_default, format_description, format_epilog, format_option, 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]

format_option_strings(self, option)

 

Return a formatted option string.

Allow the provided option to alter the string if it has a process_option_strings() method.

Overrides: optparse.HelpFormatter.format_option_strings