-
- Downloads
Add a non-reflowing formatter for help texts.
We want to be able to write pre-formatted command descriptions in our plugins, where the text is not reflowed/re-wrapped by optparse when printing (in response to the --help option). E.g, because they have code (Nagios config snippets) in them that don't fare well when being reflowed. We add a class NoReflowHelpFormatter to trh_nagioslib which can be used for this. It will still dedent the description text, so it can be written indented in the plugin source, if wanted.