mirror of
https://github.com/hymkor/lispect.git
synced 2026-09-03 23:57:49 -04:00
Fix: args was set os.Args[1:]. It should be os.Args[2:]
This commit is contained in:
@@ -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