-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
support cargo --version --verbose
, just as rustc does
#3584
Comments
implement `cargo --version --verbose` As suggested in #3584. This is a bit underwhelming, and I'm unsure if some of the complexity in froydnj/cargo@775c900 is really warranted, but this series gets the job done. Sample output when building with `configure` and `make`: ``` froydnj@hawkeye:~/src/cargo.git$ target/x86_64-unknown-linux-gnu/release/cargo --version cargo-0.17.0-dev (ae4a4d8 2017-01-27) froydnj@hawkeye:~/src/cargo.git$ target/x86_64-unknown-linux-gnu/release/cargo --version --verbose cargo-0.17.0-dev (ae4a4d8 2017-01-27) release: 0.17.0 commit-hash: ae4a4d8fc55bf7eca3d974f953dc61729e4a40db commit-date: 2017-01-27 ```
So, one thing that is different between
|
I think I accidentally changed this in 775c900. |
@alexcrichton Do you think it's worth changing it back? It'd be a one-line change. |
@froydnj ah yeah makes sense to me! |
When checking for
rustc
versions, we've found its--version --verbose
output very useful:It would be splendid if
cargo
supported the same form of output (obviously deleting things like the LLVM version, but perhaps there are other pertinent things that could be output). The--version --verbose
output is somewhat easier to parse if you want to get at things like exact version number without worrying to deeply about the form of your regexes, for instance. The consistency between the two tools is also welcome.The text was updated successfully, but these errors were encountered: