AppArgs problem

BlitzMax Forums/BlitzMax Programming/AppArgs problem

Interesting


D:/_BlitzMax/test_cli.exe
-a
-b
-c



If I run the application from the IDE [with Command Line -a -b -c]
while if I run from CLI (so I move to the folder where the app is) I get the following...

test_cli -a -b -c


test_cli
-a
-b
-c



BlitzMax 1.30 SVN Rev.147, debug off, no threaded

There is a slightly difference in the first parameter: Path and APP_NAME are not the same thing....

edit
Just read better the documentation and

The AppArgs global array contains the command line parameters sent to an application when it was started. The first element of AppArgs always contains the name of the application. However, the format of the name may change depending on how the application was launched. Use AppDir or AppFile for consistent information about the applications name or directory.