1
Fork 0
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:
Sylvestre Ledru 2022-05-05 11:44:24 +02:00 committed by GitHub
commit 75ea1f1fc3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 79 additions and 11 deletions

View file

@ -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);
}