mirror of
https://github.com/hymkor/lispect.git
synced 2026-08-28 04:46:59 -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{}
|
||||
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...)})
|
||||
|
||||
Reference in New Issue
Block a user