Parse command-line arguments with argparse in Python: 
There are several third-party libraries for command-line argument parsing, but the standard library module argparse is no slouch either.
Without adding any more dependencies, you can write a nifty command-line tool with useful argument parsing.
Argument parsing in Python
When parsing command-line arguments with argparse, the first step is to configure an ArgumentParser object. This is often done at the global module scope since merely configuring the parser has no side effects.
read more: Opensource.com Moshe Zadka
Supporting Open Source.
Have you tried: Diving with Sharks?
