PyDocs

Nav

Command-line interface libraries

ArgumentParser.print_help

  • ArgumentParser.print_help(file=None)
Print a help message, including the program usage and information about the arguments registered with the ArgumentParser. If file is None, sys.stdout is assumed.
1 Example
>>> parser = argparse.ArgumentParser(prog='myprogram')
>>> parser.print_help()
usage: myprogram [-h]

options:
 -h, --help  show this help message and exit
from the Python docs
See Also
No see-alsos for argparse/ArgumentParser.print_help
0 Notes
No notes for ArgumentParser.print_help