Skip to content

Commit

Permalink
fix(cli): Be more specific in what is needed
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Aug 31, 2023
1 parent 8156fcb commit 58f2237
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cargo/util/command_prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ pub trait ArgMatchesExt {
"ustc --print target-list"
};
bail!(
"\"--target\" takes an argument.
"\"--target\" takes a target architecture as an argument.
Run `{cmd}` to see possible targets."
);
Expand Down
2 changes: 1 addition & 1 deletion tests/testsuite/list_availables.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ No tests available.
.cargo(&format!("{} --target", command))
.with_stderr(
"\
error: \"--target\" takes an argument.
error: \"--target\" takes a target architecture as an argument.
Run `[..]` to see possible targets.
",
Expand Down

0 comments on commit 58f2237

Please sign in to comment.