argparse

The standard library module for reading options and arguments given on the command line, with automatic --help text.

In more detail

You declare the arguments a program accepts and argparse parses sys.argv, converts types and reports usage errors. It also generates a --help message from the arguments you declare.

Related terms

Taught in

References

Certification courses