mirror of
https://github.com/hymkor/lispect.git
synced 2026-10-27 14:00:00 -04:00
Fix: args was set os.Args[1:]. It should be os.Args[2:]
This commit is contained in:
1 parent
58796bd95f
commit
31510725b1
1 file changed
+1
-1
@@ -51,7 +51,7 @@ func mains(args []string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
posixArgv := []gmnlisp.Node{}
|
posixArgv := []gmnlisp.Node{}
|
||||||
for _, s := range args {
|
for _, s := range args[1:] {
|
||||||
posixArgv = append(posixArgv, gmnlisp.String(s))
|
posixArgv = append(posixArgv, gmnlisp.String(s))
|
||||||
}
|
}
|
||||||
lisp = lisp.Let(&gmnlisp.Pair{Key: gmnlisp.NewSymbol("args"), Value: gmnlisp.List(posixArgv...)})
|
lisp = lisp.Let(&gmnlisp.Pair{Key: gmnlisp.NewSymbol("args"), Value: gmnlisp.List(posixArgv...)})
|
||||||
|
|||||||
Reference in new issue
Block a user