-
Notifications
You must be signed in to change notification settings - Fork 0
Candidates for renaming before v3 #167
Comments
Comment by epage RE A benefit to this name is clap already has the term "global" that I think translates to this. RE The thing I dislike here is that one "requires" is for developers and the other is for users. It'd be nice if we had a way of distinguishing these. Maybe This should also probably be renamed to RE ArgRequiredElseHelp I like the consistency in using |
Comment by epage So my current table
|
Comment by kbknapp My general thoughts are, "What is least surprising or what is most likely to be searched for in the docs when wanting capability X." With a strong preference for consistency (back to my least surprising point) over perfect naming. So if we are using a verb/noun in some context, once the user has internalized that meaning with regard for clap, seeing that same verb or noun should have the same result. I tend to think in terms of It could be argued that we should have different structure based on if the action is at parser build time, parse time, or validation time...as well as if it's a setting for clap, the developer, or the end user. But naming is one of the most bike-shedable things in CS so I'm partial to just leave well enough alone. Likewise I tend to think that unless a name is actively causing a problem, or conflicting with some other naming scheme we've been using it's a low priority for change. Churn is more detrimental to downstream users than a less than perfect name. Just my 2 cents. |
Comment by epage
Another consideration for having a good scheme and having the feature stand out by being first (usually a noun) is it makes it easier to scan and discover new features when dealing with a specific domain (e.g. its easy to find
I've been impacted by both sides of this. Churn is rough. Similarly, inconsistent and undiscoverable names are also rough. I recently ran into this with For v3, probably my biggest care about is if we started some renames and, if so, is it in a polished enough state or should we change it one way or the other. Anything else I can see pushing off to a later release. I guess I'd also throw in "having an API style guide" so new features are more likely to be right from the beginning. |
Comment by epage
|
Comment by epage Based on kbknapp's post, I recommend we wrap this up with the following renames:
If I were to prioritize this, I would say
If we keep with NounVerb, there are other renames we can do to be more consistent with that but people have already been living with it, they can live with it a little longer. I did not see any other renames that I would undo because of the background / preference towards Setting::NounVerb |
Comment by epage Another thought on |
Issue by pksunkara
Saturday Oct 10, 2020 at 15:18 GMT
Originally opened as clap-rs/clap#2164
App::generate_usage
(a new function) consistent withApp::render_*
(also new)The text was updated successfully, but these errors were encountered: