argparse Module
1 | import argparse |
Docs here:
https://docs.python.org/3/howto/argparse.html
The argparse module makes it easy to write user-friendly command-line interfaces. The program defines what arguments it requires, and argparse will figure out how to parse those out of sys.argv.
1 | parser = argparse.ArgumentParser(description='Process some integers.') |