Commit a8c7ff9
committed
python: support raw description formatter with help_formatter()
Problem: There is currently no way to get raw description and
epilog formatting with the FluxHelpFormatter class returned from
help_formatter().
Add a FluxRawDescriptionHelpFormatter class that inherits from both
FluxHelpFormatter and RawDescriptionHelpFormatter for this purpose.
Return this class instead of FluxHelpFormatter if a new optional
raw_description parameter is set in the call to help_formatter().1 parent d78b3d9 commit a8c7ff9
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
| 126 | + | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
165 | 175 | | |
166 | 176 | | |
167 | 177 | | |
| |||
0 commit comments