From 9a55b787a06f3e0fd760b8521361699a4e430413 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Mon, 17 Jun 2013 20:22:18 -0400 Subject: [PATCH] debugmode is now a flag --- skeam.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skeam.go b/skeam.go index 1b8622a..e4e8b61 100644 --- a/skeam.go +++ b/skeam.go @@ -12,7 +12,7 @@ import ( "strings" ) -var DEBUG = false +var DEBUG bool type sexp struct { items []interface{} @@ -242,6 +242,7 @@ func defaultInterpreter(out chan interface{}, errors chan error) { } func main() { + flag.BoolVar(&DEBUG, "debug", false, "puts the interpreter in debug mode") flag.Parse() if DEBUG { fmt.Println(universe)