def main(argv=sys.argv[<NUM_LIT:1>:]):
usage = '<STR_LIT>' + __doc__<EOL>parser = OptionParser(usage)<EOL>parser.add_option("<STR_LIT>", "<STR_LIT>",<EOL>action='<STR_LIT:store_true>', default=False,<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>", "<STR_LIT>",<EOL>default='<STR_LIT>',<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>", "<STR_LIT>",<EOL>default='<STR_LIT>',<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>", "<STR_LIT>",<EOL>default=None,<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>", "<STR_LIT>",<EOL>action='<STR_LIT:store_true>', default=False,<EOL>help="<STR_LIT>")<EOL>parser.add_option("<STR_LIT>", "<STR_LIT>",<EOL>action='<STR_LIT:store_true>', default=False,<EOL>help="<STR_LIT>")<EOL>(options, args) = parser.parse_args(argv)<EOL>if len(args) != <NUM_LIT:1>:<EOL><INDENT>parser.error("<STR_LIT>" % (len(args), '<STR_LIT:U+0020>'.join(args)))<EOL><DEDENT>input_fn = args[<NUM_LIT:0>]<EOL>if not options.output_file:<EOL><INDENT>options.output_file = input_fn<EOL><DEDENT>LEVEL_CHOICES = LEVELS + ['<STR_LIT>']<EOL>min_level_value = <NUM_LIT:0> if options.min_level == '<STR_LIT>' else get_level_value(options.min_level)<EOL>if options.min_level is None:<EOL><INDENT>parser.error("<STR_LIT>" % '<STR_LIT:U+002CU+0020>'.join(LEVEL_CHOICES))<EOL><DEDENT>max_level_value = sys.maxint if options.max_level == '<STR_LIT>' else get_level_value(options.max_level)<EOL>if options.max_level is None:<EOL><INDENT>parser.error("<STR_LIT>" % '<STR_LIT:U+002CU+0020>'.join(LEVEL_CHOICES))<EOL><DEDENT>if options.verbose:<EOL><INDENT>logging.getLogger().setLevel(logging.INFO)<EOL><DEDENT>try:<EOL><INDENT>return modify_logging(input_fn, options.output_file,<EOL>min_level_value, max_level_value,<EOL>options.restore, options.force)<EOL><DEDENT>except IOError as e:<EOL><INDENT>logging.error(str(e))<EOL>return -<NUM_LIT:1><EOL><DEDENT>
Parses the command line comments.