You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sys.args()
Returns all the arguments that were passed in the command line. This does not include the interpreter or the name of the program file.
Sys.programPath()
Returns the absolute path to the current program file that we are running. Concretely, for an executable binary, it returns the path to the binary. For a script (e.g. a PHP file), it returns the path to the script.
This suggests that the following output should be expected when running this script with Cppia script.cppia:
Perhaps the cpp.cppia.Host.runFile() should take an args argument, then runFile should store the script file name and arguments somewhere. Sys.args() and Sys.programPath() should be virtual calls that return these values.
The text was updated successfully, but these errors were encountered:
tobil4sk
added a commit
to tobil4sk/haxec
that referenced
this issue
Jan 16, 2025
According to the Haxe docs:
This suggests that the following output should be expected when running this script with
Cppia script.cppia
:Instead we get:
Perhaps the
cpp.cppia.Host.runFile()
should take an args argument, thenrunFile
should store the script file name and arguments somewhere.Sys.args()
andSys.programPath()
should be virtual calls that return these values.The text was updated successfully, but these errors were encountered: