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"

 
#defn main(_V_,_N_)  #RAND, main:, V#RNDV=1,_V_={#VOID}, \
                     _N_=0,totalarg,mov(_N_), \
                     LOOPGETARG_#RNDV:, {[ V#RNDV ]},push(_V_),++V#RNDV,\
                     {_N_,V#RNDV},jle(LOOPGETARG_#RNDV),clear(V#RNDV)
 