()
| 95 | |
| 96 | |
| 97 | def main(): |
| 98 | description = 'Create a human readable version of the scores provided by the leaderboard.\n' |
| 99 | # general parameters |
| 100 | parser = argparse.ArgumentParser(description=description, formatter_class=RawTextHelpFormatter) |
| 101 | parser.add_argument('-f', '--file', help='JSON file containing the results of the leaderboard', required=True) |
| 102 | parser.add_argument('--format', default='fancy_grid', |
| 103 | help='Format in which the table will be printed, e.g.: fancy_grid, latex, github, html, jira') |
| 104 | parser.add_argument('-o', '--output', help='Output file to print the results into') |
| 105 | arguments = parser.parse_args() |
| 106 | |
| 107 | return prettify_json(arguments) |
| 108 | |
| 109 | |
| 110 | if __name__ == '__main__': |
no test coverage detected