()
| 55 | return parser.parse_args() |
| 56 | |
| 57 | def main(): |
| 58 | |
| 59 | args = cli() |
| 60 | |
| 61 | try: |
| 62 | |
| 63 | readFile(args.source) |
| 64 | |
| 65 | except CatError as e: |
| 66 | |
| 67 | logger.error(e) |
| 68 | |
| 69 | exit(1) |
| 70 | |
| 71 | except KeyboardInterrupt: |
| 72 | |
| 73 | logger.error('\nInterrupt') |
| 74 | |
| 75 | ''' |
| 76 | Start the program |