PyDocs

Nav

Command-line interface libraries

ArgumentParser.add_argument

  • ArgumentParser.add_argument(name or flags..., *[, action][, nargs][, const][, default][, type][, choices][, required][, help][, metavar][, dest][, deprecated])
add_argument(dest, ..., name=value, ...)
add_argument(option_string, option_string, ..., name=value, ...)
1 Example
>>> parser.add_argument('-f', '--foo')
from the Python docs
See Also
No see-alsos for argparse/ArgumentParser.add_argument
0 Notes
No notes for ArgumentParser.add_argument