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

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