Skip to content
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 --workspace flag as an alias for --all #5635

Closed
bstrie opened this issue Dec 22, 2022 · 1 comment
Closed

Support --workspace flag as an alias for --all #5635

bstrie opened this issue Dec 22, 2022 · 1 comment

Comments

@bstrie
Copy link

bstrie commented Dec 22, 2022

cargo fmt supports a --all flag for operating on all members in a workspace. cargo check also supports --all for the same purpose, but this is deprecated in favor of --workspace, which is an alias with no semantic difference. Other tools based on cargo check, like cargo clippy, inherit the ability to use --workspace. The inability to use --workspace in an official tool thus feels inconsistent.

For reference, here's the PR where cargo clippy switched to using cargo check's manifest handling, which had the effect of removing their own bespoke --all flag: rust-lang/rust-clippy#2585 .

It would be nice for all of the officially-provided tools to present consistent interfaces.

@ytmimi
Copy link
Contributor

ytmimi commented Dec 22, 2022

Thanks for reaching out, but this is a duplicate of #5010

@ytmimi ytmimi closed this as not planned Won't fix, can't repro, duplicate, stale Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants