Print program usage example with argparse module
Use parser.epilog to display something after the generated -h text. parser = argparse.ArgumentParser( description=’My first argparse attempt’, epilog=’Example of use’) output = parser.parse_args() prints: My first argparse attempt optional arguments: -h, –help show this help message and exit Example of use