diff --git a/cent b/cent index f96e715..20cd6b9 100755 --- a/cent +++ b/cent @@ -2,8 +2,7 @@ """ Usage: cent (-h|--help) - cent -i FILE - cent -c FILE + cent (-i|-c) FILE Options: -h --help Print this help screen @@ -31,7 +30,10 @@ def main(): program = parser.parse(tokens) if isinstance(program, Program): - program.eval() + if args["-i"]: + program.eval() + else: + raise Exception("Compiler not implemented") else: raise Exception("Output not of type 'Program'", type(program))