def main():
parser = build_command_parser()<EOL>options = parser.parse_args()<EOL>file_pointer = options.filename<EOL>input_format = options.input_format<EOL>with file_pointer:<EOL><INDENT>json_data = json.load(file_pointer)<EOL><DEDENT>if input_format == SIMPLE_JSON:<EOL><INDENT>report = Report(json_data)<EOL><DEDENT>elif input_format == EXTENDED_JSON:<EOL><INDENT>report = Report(<EOL>json_data.get('<STR_LIT>'),<EOL>json_data.get('<STR_LIT>'),<EOL>json_data.get('<STR_LIT>'))<EOL><DEDENT>print(report.render(), file=options.output)<EOL>
Pylint JSON to HTML Main Entry Point