When trying to send arguments to a, in haibu-carapace, wrapped script the command line arguments specifically meant for the wrapped script where not available in the process.argv of the wrapped script.
Included is a test script showing the deficiency and a fix for the bug.
[fix] command line arguments for the wrapped script where not availab…
…le in process.argv
this looks like it might be a breaking change?
This line change is not needed to fix the arguments bug but exports.options is also calling hookio.cli.options and as such does the same thing. Because I don't like to have two similar actions repeated in code I just changed it to call export.options instead.
If you don't want this function changed I can revert it (as said its not needed to fix the bug...)
Whats the verdict ?? I'd like to have this issue fixed because next week I have a demo that uses arguments on carapace.... ;-)
Today is a travel day for me. I will let you know when I'm back stateside tomorrow or Friday.
Cherry-picked in 5d78926. Published in firstname.lastname@example.org