Command line

BlitzMax Forums/BlitzMax Programming/Command line

Pineapple(Posted 2010) [#1]
I can't seem to recall or find in the docs what command returns the command line for the program execution. What was it?


xlsior(Posted 2010) [#2]
Get the number of parameters with:
AppArgs.length

View them as:
AppArgs[0],AppArgs[1],AppArgs[2], etc.


xlsior(Posted 2010) [#3]
From the help:

' appargs.bmx
' print the command line arguments passed to the program at runtime

Print "Number of arguments = "+AppArgs.length

For a$=EachIn AppArgs
Print a$
Next



Pineapple(Posted 2010) [#4]
thank you


TAS(Posted 2013) [#5]
Ditto