Skip to content

Cargo and rustc have inconsistent version flags #17938

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

Closed
mcpherrinm opened this issue Oct 11, 2014 · 5 comments
Closed

Cargo and rustc have inconsistent version flags #17938

mcpherrinm opened this issue Oct 11, 2014 · 5 comments

Comments

@mcpherrinm
Copy link
Contributor

Cargo -V and rustc -v both print version information. Since the two tools are so related, having consistent flags seems like the right thing to do.

Cargo uses -v for verbose. Rustc does not use -V.

I am filing this bug against both cargo & rustc. See rust-lang/cargo#690

@flaper87
Copy link
Contributor

Why not just using --version to print version information and -v for verbose for both rustc and cargo. I've seen this in other tools and I personally prefer it over having -V and -v, which may be confusing.

@o11c
Copy link

o11c commented Oct 11, 2014

There is long practive to use -v for verbose; rustc is wrong. At least they both support --version. Additionally, changing rustc can be done without breaking anything.

@jakerr
Copy link
Contributor

jakerr commented Oct 13, 2014

Another weird thing I ran into with cargo v.s. rust handling of --version is that cargo's version is printed to stderr, a side effect of using docopt I suspect; while rustc's version goes to stdout.

@tshepang
Copy link
Member

I think this should be closed, but @jakerr comment remains concerning.

@flaper87
Copy link
Contributor

#19900 fixed this issue.

I think stdout is the right place to print this info. closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants