I'm using python's argparse to handle parsing of arguments. I get a default help message structured like so:
usage: ProgramName [-h] ...
Description
positional arguments:
...
optional arguments:
-h, --help show this help message and exit
...
What I want is to add an entire new section to this message, for example:
usage: ProgramName [-h] ...
Description
positional arguments:
...
optional arguments:
-h, --help show this help message and exit
...
additional information:
This will show additional information relevant to the user.
....
Is there a way to achieve this behavior? A solution that is supported by both python 2.7 and 3.x is preferred.
Edit: I would also rather have a solution that will add the new section / sections at the bottom of the help message.