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"

       IDENTIFICATION DIVISION.
       PROGRAM-ID. accept-all-args.
 
       DATA DIVISION.
       WORKING-STORAGE SECTION.
       01  args                   PIC X(50).
 
       PROCEDURE DIVISION.
       main-line.
           ACCEPT args FROM COMMAND-LINE
           DISPLAY args
 
           GOBACK
           .