Extension of the command line option parser from the module "optparse", which was originally written by Gregory P. Ward.