Skip to content

Commit e46379a

Browse files
committed
fix(remove): Include 'cargo help' suggestion in -h
1 parent 4518131 commit e46379a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/bin/cargo/commands/remove.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ pub fn cli() -> clap::Command {
5050
])
5151
.arg_package("Package to remove from")
5252
.arg_manifest_path()
53+
.after_help("Run `cargo help remove` for more detailed information.\n")
5354
}
5455

5556
pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {

tests/testsuite/cargo_remove/help/stdout.log

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,5 @@ Manifest Options:
2727
--frozen Require Cargo.lock and cache are up to date
2828
--locked Require Cargo.lock is up to date
2929
--offline Run without accessing the network
30+
31+
Run `cargo help remove` for more detailed information.

0 commit comments

Comments
 (0)