Consider the following sample code
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('action', help='Action to take')
parser.add_argument('-b','--bar', help='Description for bar argument')
parser.parse_args()
The output of calling it with a --help
argument would probably be something like this:
positional arguments:
action Action to take
optional arguments:
-h, --help show this help message and exit
-b --bar Description for bar argument
I dont want the above default help text that Argparse generates. I want a message that is entirely written by me
For example calling the file with --help
argument should display the following help message:
Please go to http://some_website.com/help to understand more about our software
So how do I provide my custom message to Argparse?