https://www.youtube.com/playlist?list=PLhOuww6rJJNNx06soCkb4aMFhuioQ7tY5
This is a collection of example programs to show how you can use the standard Python module argparse to handle command-line aruguments.
one_arg.py: one positional argumenttwo_args.py: two positional argumentsnargs2.py: another way to handle two positional argumentsnargs+.py: one or more positional argumentsmanual.py: manually validating an argument insideget_argschoices.py: usingchoicesto restrict valuescat_n.py: a Python implementation ofcat -n