def main(args=sys.argv[<NUM_LIT:1>:]):
import mcpartools<EOL>parser = argparse.ArgumentParser()<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>action='<STR_LIT:version>',<EOL>version=mcpartools.__version__)<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>action='<STR_LIT:count>',<EOL>default=<NUM_LIT:0>,<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>action='<STR_LIT:count>',<EOL>default=<NUM_LIT:0>,<EOL>help='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>type=str,<EOL>help='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>type=str,<EOL>default=None,<EOL>help='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>type=str,<EOL>default=None,<EOL>help='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>type=str,<EOL>default=None,<EOL>help='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>nargs='<STR_LIT:+>',  <EOL>type=str,<EOL>help='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>type=str,<EOL>default=None,<EOL>choices=[b.id for b in SchedulerDiscover.supported],<EOL>help='<STR_LIT>'.format([b.id for b in SchedulerDiscover.supported]))<EOL>parser.add_argument('<STR_LIT:-c>', '<STR_LIT>',<EOL>type=str,<EOL>default='<STR_LIT>',<EOL>choices=Options.collect_methods,<EOL>help='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>dest='<STR_LIT>',<EOL>metavar='<STR_LIT>',<EOL>type=int,<EOL>required=True,<EOL>help='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>',<EOL>type=int,<EOL>required=True,<EOL>help='<STR_LIT>')<EOL>parser.add_argument('<STR_LIT:input>',<EOL>type=str,<EOL>help='<STR_LIT>')<EOL>args = parser.parse_args(args)<EOL>if args.quiet:<EOL><INDENT>if args.quiet == <NUM_LIT:1>:<EOL><INDENT>level = "<STR_LIT>"<EOL><DEDENT>elif args.quiet == <NUM_LIT:2>:<EOL><INDENT>level = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>level = "<STR_LIT>"<EOL><DEDENT><DEDENT>elif args.verbose:<EOL><INDENT>level = "<STR_LIT>"<EOL><DEDENT>else:<EOL><INDENT>level = "<STR_LIT>"<EOL><DEDENT>logging.basicConfig(level=level)<EOL>opt = Options(args)<EOL>generator = Generator(options=opt)<EOL>ret_code = generator.run()<EOL>return ret_code<EOL>
Main function, called from CLI script
:return: