| 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: | ||||
| Rich Lane | 720eaf2 | 2013-08-09 18:00:45 -0700 | [diff] [blame] | 10 | return None |