fix(cli): Make --help easier to browse#11905
Conversation
|
r? @weihanglo (rustbot has picked a reviewer for you, use r? to override) |
This makes it easier to evaluate the usability of PRs, like rust-lang#11905
This makes it easier to evaluate the usability of PRs, like rust-lang#11905
This makes it easier to evaluate the usability of PRs, like rust-lang#11905
This makes it easier to evaluate the usability of PRs, like rust-lang#11905
|
☔ The latest upstream changes (presumably #12157) made this pull request unmergeable. Please resolve the merge conflicts. |
People better not be relying on
That is why I have not been working to move this forward. |
This makes it easier to evaluate the usability of PRs, like rust-lang#11905
This makes it easier to evaluate the usability of PRs, like rust-lang#11905
test(cli): Track --help output ### What does this PR try to resolve? This makes it easier to evaluate the usability of PRs, like #11905 This follows the pattern of `cargo add` and `cargo remove` of putting these ui tests in `cargo_<cmd>/` directories. `init` didn't follow this pattern, so it was renamed to `cargo_init/`. `cargo_config.rs` was going to conflict with this, it was merged in. We can evaluate other `<cmd>.rs` files at a later point and consolidate. ### How should we test and review this PR? The main risks are - Are all files linked together (`main.rs` -> `<cmd>/mod.rs` -> `<cmd>/<help>.rs` - Are all `help/mod.rs`s pointing to the right command
830931e to
d500051
Compare
--help easier to browse--help easier to browse
weihanglo
left a comment
There was a problem hiding this comment.
Thanks a lot. Let's move on!
|
@bors r+ |
|
☀️ Test successful - checks-actions |
1 similar comment
|
☀️ Test successful - checks-actions |
|
👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request. |
Update cargo 21 commits in d78bbf4bde3c6b95caca7512f537c6f9721426ff..7e9de3f4ec3708f500bec142317895b96131e47c 2023-08-03 12:58:25 +0000 to 2023-08-13 00:47:32 +0000 - feat: remove `--keep-going` from `cargo test/bench` (rust-lang/cargo#12478) - chore: window-sys should be a platform-specific dependency (rust-lang/cargo#12483) - docs: make the env var source of rerun-if-env-changed clearer (rust-lang/cargo#12482) - doc: note the backward compatible `.cargo/credential` file exists (rust-lang/cargo#12479) - Fix elided lifetime in associated const (rust-lang/cargo#12475) - prompt the use of `--nocapture` flag if `cargo test` process is terminated via a signal. (rust-lang/cargo#12463) - cargo-credential: reset stdin & stdout to the Console (rust-lang/cargo#12469) - Fix cargo remove incorrectly removing used patches (rust-lang/cargo#12454) - chore(gh): Expand update window (rust-lang/cargo#12466) - Fix panic when enabling http.debug for certain strings (rust-lang/cargo#12468) - fix(cli): Make `--help` easier to browse (rust-lang/cargo#11905) - fix: preserve jobserver file descriptors on rustc invocation to get `TargetInfo` (rust-lang/cargo#12447) - refactor: migrate to `tracing` (rust-lang/cargo#12458) - docs: add example for cargo-credential (rust-lang/cargo#12461) - Bail out an error when using cargo:: in custom build script (rust-lang/cargo#12332) - Fix printing multiple warning messages for unused fields in [registries] table (rust-lang/cargo#12439) - Update windows dependencies (rust-lang/cargo#12453) - Rustfmt a let-else statement (rust-lang/cargo#12451) - Add allow(internal_features) (rust-lang/cargo#12450) - Update pretty_env_logger to 0.5 (rust-lang/cargo#12445) - Remove build metadata from libgit2-sys dependency (rust-lang/cargo#12444) r? `@ghost`
This mirrors some of the categories from
cargo help(the man pages) usingclap::Arg::help_heading.There are fewer categories to avoid extra vertical space. Instead, they
are left int the
Optionscategory but put first.The goal is to try to make it easier to scan
--helpoutput as the list of flags can get quite long and its easy to miss what features are there.