Command-line arguments is part of Short Circuit's Console Program Basics selection.
Scripted main
See also Program name.

For parsing command line arguments intelligently, see Parsing command-line arguments.

Example command line:

myprogram -c "alpha beta" -h "gamma"

#!/usr/bin/picolisp /usr/lib/picolisp/lib.l
 
(de c ()
   (prinl "Got 'c': " (opt)) )
 
(de h ()
   (prinl "Got 'h': " (opt)) )
 
(load T)
(bye)