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
yargs.option("version") is admitted, but fails silently #2199
Comments
@jly36963 didn't you do some work in this area already, regarding warning when version was used in unexpected ways? |
I just came across basically the same issue, but using a positional:
The problem seems to be when you add a |
A warning about a name collision with the default version option got added in #1986. Unfortunately, it turns out
https://medium.com/@jasnell/introducing-process-warnings-in-node-v6-3096700537ee |
The warning (which should have been displayed) explains the issue and possible work-arounds:
|
(I will re-label this as a bug since the warning is not appearing in some circumstances.) |
@RoBorg correctly identified the additional factor which means the warning does not get displayed. When the author supplied |
Using something like:
Will not raise any kind of error or warning, but it will make parsing fail and print the version string instead.
The text was updated successfully, but these errors were encountered: