From 31510725b1d90ca484d76469b3b33cf15e7dfaa0 Mon Sep 17 00:00:00 2001 From: HAYAMA_Kaoru Date: Mon, 2 Dec 2024 06:02:09 +0900 Subject: [PATCH] Fix: `args` was set os.Args[1:]. It should be os.Args[2:] --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index caee89f..7ab14b6 100644 --- a/main.go +++ b/main.go @@ -51,7 +51,7 @@ func mains(args []string) error { } posixArgv := []gmnlisp.Node{} - for _, s := range args { + for _, s := range args[1:] { posixArgv = append(posixArgv, gmnlisp.String(s)) } lisp = lisp.Let(&gmnlisp.Pair{Key: gmnlisp.NewSymbol("args"), Value: gmnlisp.List(posixArgv...)})