mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-09-16 03:36:18 +00:00
Merge pull request #3457 from tertsdiepraam/clap-exit-code
`clap` exit code
This commit is contained in:
commit
75ea1f1fc3
6 changed files with 79 additions and 11 deletions
|
@ -58,3 +58,8 @@ fn test_command_where_command_takes_n_flag() {
|
|||
.run()
|
||||
.stdout_is("a");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_invalid_argument() {
|
||||
new_ucmd!().arg("--invalid").fails().code_is(125);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue