Test behavior of --help --invalid-flag
This commit is contained in:
parent
4909fd8c77
commit
e834e60987
1 changed files with 3 additions and 0 deletions
|
|
@ -45,4 +45,7 @@ fn main() {
|
|||
)
|
||||
.actual_text("(rustc -Whelp -Zhelp -Chelp --help)", &ordered_help)
|
||||
.run();
|
||||
|
||||
// Test that `rustc --help` does not suppress invalid flag errors
|
||||
let help = bare_rustc().arg("--help --invalid-flag").run_fail().stdout_utf8();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue