Rich Lane | 95f078b | 2013-01-06 13:24:58 -0800 | [diff] [blame^] | 1 | import optparse |
2 | |||||
3 | # Don't wrap description text to give us more control over newlines. | ||||
4 | class HelpFormatter(optparse.IndentedHelpFormatter): | ||||
5 | def format_description(self, description): | ||||
6 | if description: | ||||
7 | indent = " "*self.current_indent | ||||
8 | return indent + description | ||||
9 | else: | ||||
10 | return none |