Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop parsing options after passing runnable in list of arguments #7

Open
karfau opened this issue Jan 3, 2020 · 0 comments
Open

Stop parsing options after passing runnable in list of arguments #7

karfau opened this issue Jan 3, 2020 · 0 comments

Comments

@karfau
Copy link
Owner

karfau commented Jan 3, 2020

Due to the underlying argument option parser ( the following invocation:
runex -r ts-node/register runnable -r whatever
will not receive the arguments `'-r', 'whatever', and will instead be called with zero arguments (tj/commander.js#1127)
A failing test has already been added to https://github.com/karfau/runex/compare/fix/stop-at-first-positional?expand=1

The workaround for now is to add -- before runnable:
runex -r ts-node/register -- runnable -r whatever

I made an attempt to fix it by moving to yargs-parser but it has other issues.

Currently I'm evaluating the aailable options/arguments for picking the right parser: https://github.com/karfau/node-cli-arguments-options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant