1
0
mirror of https://github.com/cc65/cc65.git synced 2025-02-04 13:32:54 +00:00

Explain command line arguments

git-svn-id: svn://svn.cc65.org/cc65/trunk@2564 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-10-22 21:51:36 +00:00
parent 48c122e478
commit 2612d83864

View File

@ -235,6 +235,22 @@ does not exist).
<sect>Other hints<p>
<sect1>Passing arguments to the program<p>
Command line arguments can be passed to <tt/main()/. Since this is not
supported by BASIC, the following syntax was choosen:
<tscreen><verb>
RUN:REM,ARG1," ARG2", ARG 3,, ARG5, ...
</verb></tscreen>
<enum>
<item>Arguments are separated by commas.
<item>There must be a comma after the first <tt/REM/.
<item>Leading spaces are ignored; trailing spaces are included unless the
argument was quoted.
<item>The first argument passed to <tt/main/ is the program name.
</enum>