Sometimes, it's useful to poke around your option parser and see what'sthere. OptionParser provides a couple of methods to help you out:
has_option(opt_str)opt_str (e.g.,-q or--verbose).get_option(opt_str)opt_str, orNone if no options have that option string.remove_option(opt_str)opt_str,that option is removed. If that option provided any otheroption strings, all of those option strings become invalid.Ifopt_str does not occur in any option belonging to thisOptionParser, raises ValueError.