Closed d4h0 closed 3 years ago
Hey @igor-petruk,
would you mind releasing a new version that takes advantage of the fix ?
Cheers !
Hi,
I tried, but then I had to yank it. I think I've broken the argument passing. I am trying to fix it now
Oh. Good luck with that & thanks for your feedback !
Ok, now I think it is ok, I've done the release.
The code is somewhat ugly, so I anticipate to split the tool in two binaries, making a separate scriptisto-run
binary purely as the shebang interpreter, that can unambiguously know that it is not suppose to invoke structopt
ever. For now there is a lot of guesswork. This should also make the runtime faster
The code is somewhat ugly, so I anticipate to split the tool in two binaries, making a separate
scriptisto-run
binary purely as the shebang interpreter, that can unambiguously know that it is not suppose to invokestructopt
ever.
An alternative would be to keep one binary and behave differently according to the invocation name, like BusyBox / RustyBox.
Expected Behavior
Executing
bin/xy.rs
executes the target script.Actual Behavior
scriptisto
itself is executed.This works:
This doesn't work (notice the missing "./"):
Steps to Reproduce the Problem
Specifications