-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Rename Arg::help to Arg::about #1823
Comments
Hey @pksunkara, Can I take this up? |
@creativcoder Sure, go ahead! |
I don't see the point of renaming this, it will be another change for a user upgrading from 2.x land to 3.x without much reason. |
There is much reason because |
As a compromise, we can rename it but leave the old |
Help is more synonymous with CLIs and the usage is understood. I don't see the value of this tbh |
Help is about the full help message. About concerns only the description. I don't want to keep The generated help contains other things like possible values, default values etc.. which should completely be replaced if |
So, you are going to change the behavior of a very frequently used function without changing its signature. If you ask me - or don't, but I'll tell you anyway - this is spectacularly bad idea. Just because old habits die hard. This will spread a lot of confusion among users, a lot more than the benefit from having the API unified will ever be. If you want to pull such a drastic change - rename the method. For the record - I kind of see Dylan's point. People are already got used to about/help difference. But I also see why we may want to make the API consistent. My call - let's ask for forgiveness, not for permission. We do this, we push the beta outdoors, receive feedback, revert if the feedback turns out to be largely negative. |
I agree which is why it took me such a long time to create the issue. I had been thinking about this since I started working on clap. It kept bothering me that the help related stuff is very inconsistent between |
I've had some first-hand confusion over this change and have started #2937 about the specific problem I had, while trying to acknowledge all of the other needs. Hopefully we can find a good solution. |
bump clap version Clap moved to stable and introduces some changes. - `about` now named `help`. [Ref](clap-rs/clap#1823) - `setting = AppSettings::ColoredHelp` now default - rename from `Clap` -> `Parser` See merge request dfinity-lab/public/ic!4020
Rename
Arg::help
toArg::about
to make it consistent withApp
. SimilarlyArg::long_help
. Also rename the respective field names.The text was updated successfully, but these errors were encountered: