https://www.youtube.com/playlist?list=PLhOuww6rJJNNx06soCkb4aMFhuioQ7tY5
This is a collection of example programs to show how you can use the standard Python module docopt to handle command-line aruguments.
one_arg.py: one positional argumentnargs2.py: another way to handle two positional argumentsnargs+.py: one or more positional argumentscat_n.py: a Python implementation ofcat -nmanual.py: manually validating an argument value insideget_args(using type-docopt)two_args.py: two positional arguments (automatic validating using Pydantic)choices.py: usingchoicesto restrict values (automatic validating using Pydantic)