system cmdargv - part-cw/lambdanative GitHub Wiki

(system-cmdargv n)

system-cmdargv returns the nth command line argument, if available, and #f otherwise.

Parameter Description
n Number of command line argument to be returned

Example

Example of starting DemoConsole with a bunch of arguments and extracting them later. ./DemoConsole 1 2 3 4 5 5

DemoConsole
> (system-cmdargc)   
7
> (system-cmdargv 10)  
#f
> (system-cmdargv 5) 
"5"