-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Change argument name to --precise option in cargo update. #16283
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
base: master
Are you sure you want to change the base?
Conversation
The argument is currently named `precise` which doesn't really make sense. Therefore it's changed to `version` because a version is what needs to specified.
|
|
||
|
|
||
| <dt class="option-term" id="option-cargo-update---precise"><a class="option-anchor" href="#option-cargo-update---precise"><code>--precise</code> <em>precise</em></a></dt> | ||
| <dt class="option-term" id="option-cargo-update---precise"><a class="option-anchor" href="#option-cargo-update---precise"><code>--precise</code> <em>version</em></a></dt> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to run cargo build-man
|
|
||
|
|
||
| <dt class="option-term" id="option-cargo-update---precise"><a class="option-anchor" href="#option-cargo-update---precise"><code>--precise</code> <em>precise</em></a></dt> | ||
| <dt class="option-term" id="option-cargo-update---precise"><a class="option-anchor" href="#option-cargo-update---precise"><code>--precise</code> <em>version</em></a></dt> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we change it here, we should also change it in cargo update -h
|
|
||
|
|
||
| <dt class="option-term" id="option-cargo-update---precise"><a class="option-anchor" href="#option-cargo-update---precise"><code>--precise</code> <em>precise</em></a></dt> | ||
| <dt class="option-term" id="option-cargo-update---precise"><a class="option-anchor" href="#option-cargo-update---precise"><code>--precise</code> <em>version</em></a></dt> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't just a version. It can also be a git commit sha
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you have a suggestion for a better wording? It sure is better than "precise".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VERSION|REV at least works in -h. Unsure if we should do similar in man (version|rev); I'm not seeing any precedence for | in value names within Cargo. Also, odd that they are inconsistent in casing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel like version is better than precise. It implies a version, which people will stop reading and don't know it accept Git revision. At least precise is ambiguous enough that people may dig deeper.
I'm not seeing any precedence for
--config has that:
--config KEY=VALUE or PATH
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--config has that:
Thanks! I had limited my search to src/bin/cargo/commands and so ahd missed that we did KEY=VALUE|PATH there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... and of course the man page is inconsistent on SCREAMING or lower case.
What does this PR try to resolve?
The argument of the
cargo updateflag--preciseis currently also namedprecisein the docs. This doesn't really make sense. Therefore it's changed toversionbecause a version is what needs to specified.How to test and review this PR?
No tests needed.