PyDocs

Nav

Command-line interface libraries

ArgumentParser.parse_args

  • ArgumentParser.parse_args(args=None, namespace=None)
Convert argument strings to objects and assign them as attributes of the namespace. Return the populated namespace.
1 Example
>>> parser.parse_args(['--foo=FOO'])
Namespace(foo='FOO', x=None)
from the Python docs
See Also
No see-alsos for argparse/ArgumentParser.parse_args
0 Notes
No notes for ArgumentParser.parse_args