Python getopt: Parse Short and Long Command-Line Options

Use Python getopt to parse short and long command-line options, validate required arguments, handle errors, and know when argparse is the better choice.