1.1 --- a/lplc Sun Jan 15 18:44:06 2017 +0100
1.2 +++ b/lplc Sun Jan 15 18:59:16 2017 +0100
1.3 @@ -56,6 +56,7 @@
1.4 debug = False
1.5 make = True
1.6 make_verbose = True
1.7 + traceback = False
1.8
1.9 filenames = []
1.10 outputs = []
1.11 @@ -70,6 +71,7 @@
1.12 elif arg == "-g": debug = True
1.13 elif arg == "-c": make = False
1.14 elif arg == "-q": make_verbose = False
1.15 + elif arg == "-tb": traceback = True
1.16 elif arg == "-o": l = outputs
1.17 else:
1.18 l.append(arg)
1.19 @@ -160,13 +162,13 @@
1.20
1.21 except error.SyntaxError, exc:
1.22 show_syntax_error(exc)
1.23 - if "-tb" in args:
1.24 + if traceback:
1.25 raise
1.26 sys.exit(1)
1.27
1.28 except ProcessingError, exc:
1.29 print exc
1.30 - if "-tb" in args:
1.31 + if traceback:
1.32 raise
1.33 sys.exit(1)
1.34