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
Second version-like option #491
Comments
What is the problem with handling it as
AFAIK only |
The real question is: what good reason do you have for not wanting
If I ever use your program, in almost any context or circumstance, I will not even suspect that it takes a So then for example if I ever file a bug report, if I knew it took a
--help and --version from help text. |
Or maybe you're saying you just don't want it to show up in usage, rather than in the help text at all. Okay, next point: When I look at
You know what I see? I see that tooling would have no way to tell if As a human fluent in English, I can read "show git commit hash as the time of installation", almost subconsciously autocorrect it to "as of the time of installation", and as a practicing programmer with Git experience I can deduce that of course But unless you're writing command line tools for just today's professional/collaborating software developers (as opposed to sys admins, power users, people who are just getting into software, and people who write a bunch of software but still don't know what a "git" is, like many scientists, mathematicians, statisticians, and so on), then that's not going to be obvious to some of your users. And it's definitely not going to be obvious to the kind of tooling we could write to take advantage of help text which follows a standardized format. |
I would like to have a second version-like argument (
--git
) that just prints a hash and quitsHow can I do this?
Currently I cannot even do this manually without adding a usage case:
(which I don't want)
The text was updated successfully, but these errors were encountered: