mirror of
https://github.com/hymkor/lispect.git
synced 2026-10-28 06:10:05 -04:00
Rename variables to ARGV, PROGRAM-NAME, and EXECUTABLE-NAME
This commit is contained in:
1 parent
1a892d176d
commit
f8b93fb83a
1 file changed
+3
-3
@@ -63,9 +63,9 @@ func mains(args []string) error {
|
||||
executable = value
|
||||
}
|
||||
lisp = lisp.Let(gmnlisp.Variables{
|
||||
gmnlisp.NewSymbol("args"): gmnlisp.List(posixArgv...),
|
||||
gmnlisp.NewSymbol("$PROGRAM_NAME"): gmnlisp.String(args[0]),
|
||||
gmnlisp.NewSymbol("$EXECUTABLE_NAME"): gmnlisp.String(executable),
|
||||
gmnlisp.NewSymbol("ARGV"): gmnlisp.List(posixArgv...),
|
||||
gmnlisp.NewSymbol("PROGRAM-NAME"): gmnlisp.String(args[0]),
|
||||
gmnlisp.NewSymbol("EXECUTABLE-NAME"): gmnlisp.String(executable),
|
||||
})
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
||||
Reference in new issue
Block a user