Total Complexity | 1 |
Total Lines | 17 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import argparse |
||
2 | |||
3 | from source.process import process |
||
4 | |||
5 | |||
6 | def main(): |
||
7 | parser = argparse.ArgumentParser(description='Morris Mano basic computer assembly compiler') |
||
8 | parser.add_argument('-i', '--input', help='Input file path', required=True) |
||
9 | parser.add_argument('-o', '--output', help='Output file path', required=True) |
||
10 | parser.add_argument('-m', '--mode', help='output format', default='t', required=False) |
||
11 | args = parser.parse_args() |
||
12 | process(args.input, args.output, args.mode) |
||
13 | |||
14 | |||
15 | if __name__ == '__main__': |
||
16 | main() |
||
17 |