Closed BlobCodes closed 2 years ago
Fixed in the patch above.
I added a version of #run
that receives no parameters and pass ARGC_UNSAFE
and ARGV_UNSAFE
.
And for the overload that accepts Enumarable(String)?
I append the PROGRAM_NAME
before calling the C function.
Using the following code:
In the command line (app built as test2 in this example):
Using
test2 --help
did not open the help dialog but instead showed in the error message that our app is called--help
.To fix this, we would need to pass
ARGV_UNSAFE
toapp.run
, which we cannot becausePointer
is notEnumerable
.We would need something like this:
..or:
So the examples need to be changed and it would be useful to be able to pass
ARGV_UNSAFE
directly toapp.run
. But I don't really know what's the best way to deal with this issue.