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
Add support for "--" option #73
Comments
Hi, yes this functionality is planned for the next release. I will post more detail about how it will work here once I get sufficient time. Let me know if you have any further ideas or requests for improvement. |
@75lb thanks. Which issue in that PR covers the |
The idea was introduced by #53 and is still maturing (a WIP). |
do you support the idea of having a stop parsing at first unknown feature? Some users would prefer if the first unknown option/value parsed acted as the In this example, the author could define options for
The above would be equivalent to this but saves the user needing to add
|
I think this is a fair compromise, as people interested in implementing POSIX-style Just to be certain, what you're describing is the existing behavior when using |
no, "stop parsing at first unknown" is a new feature i'm planning to implement. The existing I'm not suggesting we compromise btw. We can have both "stop parsing at first unknown" and "stop parsing at |
Ah ok, that makes sense. From my side, I'm happy with whichever (or both) you decide to implement. |
does this explanation of You can try it using the prerelease.
|
Implemented in v5.0.0. |
Thanks @75lb, and the explanation makes sense (glad you went into detail on how to use it to remove ambiguity). Looking forward to using it! |
I'm requesting support for the POSIX-recommended,
--
argument:Encountering a
--
could just add all the following arguments to the option havingdefaultOption: true
, or to the_unknown
property if nodefaultOption
is set andpartial
is true; otherwise, an exception could be thrown.The text was updated successfully, but these errors were encountered: