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
First argument is lost when variadic arg is explicitly specified #1637
Comments
Also note that:
So:
|
thanks for the bug report, definitely seems like something we should address. |
Wouldn't "overwriting options" mean Should it even be valid for a parameter to be specified twice? I think I'd expect an error in that case, because otherwise we're guessing at the user's intention, as I think both concatenation and overwriting are equally iffy. |
I believe my fix was released, can you use yargs 17.3.1 and confirm that it solves the issue you reported? The solution I chose is as follows:
NOTE: The fix had a side-effect that concerns using array/variadic options/positionals in combination with |
This issue has been resolved. Thanks for comments, and PR from @jly36963 |
Arg not explicitly specified (good output):
Arg explicitly specified (bad output, expected to match above):
The text was updated successfully, but these errors were encountered: