code from argparse
tutorial and documentation
- macOS
- Python 3.6
make deps
make test
- argparse tutorial
- basics
- positional arguments
- document arguments and specify the type
- optional arguments
- boolean optional arguments
- short options
- positional and optional arguments
- processing multiple argument values
- limit number of allowed values for argument
- countable arguments, e.g.
-vvv
and default value - add more arguments
- add more text to verbose
- conflicting options
- description
- examples from documentation
- simple example
- parent parser, parsers share multiple arguments
- epilog message in help
- overwrite usage message
- provide a description for parser
- class mixin for help formatting
- change flags prefix character
- load arguments from file
- default value for all parser arguments, suppressing default
None
- disallow abbreviation in arguments
- allow conflict flags
- disable help flag or change it's prefix
- optional and positional arguments
- different add_argument actions
- number of arguments
- default value for argument
- argument type conversion
- arguments with choices
- required arguments
- providing a help
- display example value in help
- changing inner option reference name
- optional value syntax
- invalid arguments messages
- dash in argument name
- argument abbreviations
- interactive parse_args
- Namespace object
- subparsers
- files as arguments
- argument groups for help
- mutual exclusion of arguments
- predefined arguments
- parse only known arguments
- custom file parsing
- exiting methods
the end