This is my build.hxml
:
-cp Source
-main Main
--interp
and this is the Source/Main.hx
:
package;
class Main {
public static function main() {
trace(Sys.args());
}
}
Running haxe build.hxml
yields:
$ haxe build.hxml
Source/Main.hx:4: [-cp,Source,-main,Main,--interp]
$
And haxe build.hxml my_arg
gives:
$ haxe build.hxml my_arg
(unknown) : Package "my_arg" was not found in any of class paths
$
Question is: Is it possible to pass arguments to interp target and if yes, how one goes about doing that?