command_line


command_line()
      

Return a list of command-line arguments passed to the current process.

Examples:


// echo.sn
showln(command_line())
      

The above script can be compiled into a standalone program by,


compile("echo", exe = true)
      

Execute the program by passing some command line arguments to it, and see the output:


$ ./echo "hello, world" 1 2 3
//> [./echo, hello, world, 1, 2, 3]
      

Also see:

command_line_user_args


Core Module Index | Contents