Skip to content

[Fix] exec: -- should stop argument parsing #2354

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

Merged
merged 1 commit into from
Mar 4, 2021

Conversation

vvilhonen
Copy link
Contributor

Running nvm exec stable -- node --help shows nvm's help, not node's. This change stops help parsing when encountering a --.

Co-authored-by: Vesa Vilhonen <[email protected]>
Co-authored-by: Sladyn Nunes <[email protected]>
@ljharb
Copy link
Member

ljharb commented Nov 21, 2020

thanks, i actually just ran into this a couple days ago myself.

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'll need a regression test for this.

@vvilhonen
Copy link
Contributor Author

Sorry for the delay! Can I somehow run the tests in a docker container?

@ljharb
Copy link
Member

ljharb commented Dec 15, 2020

@vvilhonen you should be able to, but usually i just push changes and let the CI run it :-)

@sladyn98
Copy link
Contributor

sladyn98 commented Mar 2, 2021

@ljharb ljharb force-pushed the fix/pass-help-in-exec branch 2 times, most recently from b0903f6 to 52f67b3 Compare March 4, 2021 17:57
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ljharb ljharb changed the title Allow passing --help with nvm exec [Fix] exec: -- should stop argument parsing Mar 4, 2021
@ljharb ljharb merged commit 52f67b3 into nvm-sh:master Mar 4, 2021
@vvilhonen
Copy link
Contributor Author

Thanks!

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

Successfully merging this pull request may close these issues.

3 participants