Next Previous Contents

7. Other hints

7.1 Passing arguments to the program

Command line arguments can be passed to main(). Since this is not supported by BASIC, the following syntax was choosen:

    RUN:REM,ARG1," ARG2", ARG 3,, ARG5, ...

  1. Arguments are separated by commas.
  2. There must be a comma after the first REM.
  3. Leading spaces are ignored; trailing spaces are included unless the argument was quoted.
  4. The first argument passed to main is the program name.


Next Previous Contents