def run(args):
(opts, args) = PARSER.parse_args(args) if args else PARSER.parse_args()<EOL>if not len(args):<EOL><INDENT>PARSER.print_usage()<EOL>sys.exit(<NUM_LIT:1>)<EOL><DEDENT>outfilename = args[<NUM_LIT:0>] + "<STR_LIT>"<EOL>if len(args) > <NUM_LIT:1>:<EOL><INDENT>outfilename = args[<NUM_LIT:1>]<EOL><DEDENT>report = parser.Junit(args[<NUM_LIT:0>])<EOL>html = report.html()<EOL>with open(outfilename, "<STR_LIT:wb>") as outfile:<EOL><INDENT>outfile.write(html.encode('<STR_LIT:utf-8>'))<EOL><DEDENT>
Run this tool
:param args:
:return: