argparse
This module is the current recommended standard module for processing arguments from the command line. The module has many more features than those described here: refer to the full documentation.
Section 28.10.1, “Types of command line arguments”
Section 28.10.2, “Overall flow of argument processing”
Section 28.10.3, “The ArgumentParser() constructor”
ArgumentParser()
Section 28.10.4, “The ArgumentParser.add_argument() method”
ArgumentParser.add_argument()
Section 28.10.5, “The ArgumentParser.parse_args() method”
ArgumentParser.parse_args()
Section 28.10.6, “Other useful ArgumentParser methods”
ArgumentParser