system cmdargc - part-cw/lambdanative GitHub Wiki
(system-cmdargc)
system-cmdargc returns the number of command line argument on Linux, Windows and Mac OS X. Note that the zeroth argument is the application name (as in C).
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"