Deprecated since version 2.7: The optparse module is deprecated and will not be developed further; development will continue with the argparse module. Source code: Lib/optparse.py optparse is a more convenient, flexible, and powerful library for parsing command-line options than the old getopt module. optparse uses a more declarative style of command-line parsing: you create an instance of OptionP