home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 3
/
goldfish_volume_3.bin
/
files
/
dev
/
e
/
amigae
/
src
/
guide
/
args20.e
< prev
next >
Wrap
Text File
|
1994-12-13
|
432b
|
21 lines
OPT OSVERSION=37
PROC main()
DEF templ, rdargs, args=NIL:PTR TO LONG, i
IF wbmessage=NIL
WriteF('Started from Shell/CLI\n')
templ:='FILE/M'
rdargs:=ReadArgs(templ,{args},NIL)
IF rdargs
IF args
i:=0
WHILE args[i] /* Loop through arguments */
WriteF(' Argument \d: "\s"\n', i, args[i])
i++
ENDWHILE
ENDIF
FreeArgs(rdargs)
ENDIF
ENDIF
ENDPROC