Skip to content

Commit

Permalink
fix(remove): Include 'cargo help' suggestion in -h
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 1, 2023
1 parent 4518131 commit e46379a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/bin/cargo/commands/remove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ pub fn cli() -> clap::Command {
])
.arg_package("Package to remove from")
.arg_manifest_path()
.after_help("Run `cargo help remove` for more detailed information.\n")
}

pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
Expand Down
2 changes: 2 additions & 0 deletions tests/testsuite/cargo_remove/help/stdout.log
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ Manifest Options:
--frozen Require Cargo.lock and cache are up to date
--locked Require Cargo.lock is up to date
--offline Run without accessing the network

Run `cargo help remove` for more detailed information.

0 comments on commit e46379a

Please sign in to comment.