Skip to content

Glossary: Python Beyond the Basics

parser

Also written: ArgumentParser, parse_args

The object `build_parser()` returns that reads the command line. `parse_args` returns an object holding each argument as an attribute, and stops with an error if the command line is wrong.

Where the book teaches it

Related terms

argparse