Skip to content

Commit

Permalink
Better suggestion for unsupported mode in install command
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustin170506 committed Sep 19, 2023
1 parent 61986e2 commit fdf2d03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bin/cargo/commands/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ pub fn cli() -> Command {
"debug",
"Build in debug mode (with the 'dev' profile) instead of release mode",
))
.arg_unsupported_mode("release", "install", "debug")
.arg_profile("Install artifacts with the specified profile")
.arg_target_triple("Build for the target triple")
.arg_target_dir()
Expand Down

0 comments on commit fdf2d03

Please sign in to comment.