aboutsummaryrefslogtreecommitdiff
path: root/cmd/headless_interpreter
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/headless_interpreter')
-rw-r--r--cmd/headless_interpreter/main.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/headless_interpreter/main.go b/cmd/headless_interpreter/main.go
index 9bed538..8bf97c4 100644
--- a/cmd/headless_interpreter/main.go
+++ b/cmd/headless_interpreter/main.go
@@ -37,7 +37,8 @@ func main() {
fmt.Printf("Failed to load file %s : %+v", *filename, err)
os.Exit(3)
}
-
- v := interpreter.NewInterpreter(f, pointer.NewPointer()).Run()
+ p := pointer.NewPointer()
+ p.Argv = []string{*filename}
+ v := interpreter.NewInterpreter(f, p).Run()
os.Exit(v)
}