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
Disable "duplicates" behaviour #530
Comments
what if we added array parsing as one the optional configuration settings in |
Yep, something like:
Possibly an option where subsequent arguments are not interpreted as that argument. So |
@stevage my temptation is to start simple, with:
I think this would address 99% of use-cases, without making the configuration too complicated. |
Agree with the 99% of the use cases bit, but with boolean values you're closing the door to supporting the others later. |
@stevage my temptation would be to support the I'll make an effort to get this additional configuration option implemented at some point this weekend (I'm hoping to have some cycles to hack on OSS). |
@bcoe I gather you didn't get as many cycles to hack on OSS as you were anticipating. Is there any progress on this issue? Expanding on the original issue, it would be useful to be able to specify this both a global default as well as a per-option setting. In most cases I would expect string options to be only passed once and having to specify this every time would be excessive. But for some options it makes sense to allow multiple values and |
@bcoe I'm trying to add this feature through yargs-parser, checkout this pr, but I'm not sure about where this config should be specified from. With the current PR it would require one to put |
This has been added |
This is surprising, and undesirable behaviour to me. I'd expect the last argument to override the previous ones. Is there a way to achieve this?
The text was updated successfully, but these errors were encountered: