diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2022-07-05 22:23:07 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2022-07-05 22:23:07 -0400 |
commit | 60fb718233fc9cac7741f0f9cc41c1b8b2dd2918 (patch) | |
tree | 29a3f6cd7d7522e2321c182a35cfb342483f0127 /src/tint.go | |
parent | 289c1fe3dd2f29e2511b6bb376582f8791179a9b (diff) |
[TINT] Add ability to quiet down the interpreter
Diffstat (limited to 'src/tint.go')
-rw-r--r-- | src/tint.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tint.go b/src/tint.go index b17d8b0..b2566b5 100644 --- a/src/tint.go +++ b/src/tint.go @@ -23,9 +23,11 @@ import "flag" func main() { inputFile := flag.String("in", "", "The file to execute") progFlags := flag.String("flags", "", "Flags for the executing program") + quietFlag := flag.Bool("quiet", false, "Quiet the interpreter when importing files") flag.Parse() + texec.Quiet = *quietFlag root := texec.BuildRoot(*inputFile) fmt.Printf("Program end. Returned %v.\n", texec.EvalTNSL(&root, *progFlags)) |