Core: learn it Step 14 of 16 on the Python Developer roadmap

Command-line arguments

argparse lets people pass options to your script, like python tidy.py --dry-run. It also builds a --help message for free.

Resources

More in Automating everyday tasks

See it on the Python Developer roadmap