Skip to content
Chris Petersen edited this page Oct 16, 2014 · 1 revision

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"
Clone this wiki locally