-
Notifications
You must be signed in to change notification settings - Fork 352
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
prefix_command documentation is confusing and should be reworded #1052
Comments
That is what it does, though; it causes parsing to stop as soon as it hits an unrecognized option, which puts them in the "unparsed" options. This "allows" unrecognized options; otherwise if it didn't stop, it would try to recognize them and fail. |
I just tested, setting it to true does not cause the parsing to stop, setting it to false cause the parsing to stop. |
What do you mean by "parsing to stop"? Just checking to make sure we are referring to the same thing. |
What I mean by "parsing to stop" is that, when setting |
Okay, that's what |
I'm getting confused a bit now but I think its a vocabulary issue. in any case, we got confused by the documentation when using this in our app (ParaView). Indeed, when I hear "it causes parsing to stop", I definitely do not understand "it does not cause an error and give access to unrecognized option". Nothing critical, but I think this doc could be improved to explain a bit more how to use CLI11 to do a partial parsing of the CLI options (which is the usecase I had). |
Okay, I think this should be reworded to avid "parsing to stop". Internally, that's what's happening, but that's not a good description for readers. I think we can use the same text for both, since they are the same thing. |
@mwestphal this was clarified in #1059, I will leave it open for a day or so if you have any further comment |
Lgtm |
We read the prefix_command documentation:
There is an incoherence. The method param name is "allow" implying that setting to true would "allow" unrecognized option but the param doc is they other way around.
On testing, it looks like the param doc is incorrect, setting
prefix_command
to true indeed "allow" to have unrecognized option.The text was updated successfully, but these errors were encountered: