Customized help string, calls the adjusted format_usage.
()
| 438 | original_format_help = parser.format_help |
| 439 | |
| 440 | def custom_help(): |
| 441 | """ Customized help string, calls the adjusted format_usage. """ |
| 442 | helpmsg = original_format_help() |
| 443 | helplines = helpmsg.splitlines() |
| 444 | helplines[0] = parser.format_usage().rstrip() |
| 445 | return os.linesep.join(helplines) + os.linesep |
| 446 | |
| 447 | parser.format_help = custom_help |
| 448 |
nothing calls this directly
no outgoing calls
no test coverage detected