GitHub

argparse-basics.md

Argparse is a built in python library that can be used to build simple and sophisticated cli tools. It supports positional arguments, optional arguments, auto generates help usage, nested subparsers ...
Python's argparse module makes it easy to write user-friendly command-line interfaces. It is the recommended command-line parsing module in the Python standard library.
Not every programmer likes creating GUI code. Most hacker types don’t mind a command line interface, but very few ordinary users appreciate them. However, if you write command line programs in Python, ...