Explain command line arguments
git-svn-id: svn://svn.cc65.org/cc65/trunk@2564 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
48c122e478
commit
2612d83864
1 changed files with 16 additions and 0 deletions
16
doc/c64.sgml
16
doc/c64.sgml
|
@ -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>
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue