1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

uptime: use clap to handle too many path args

This commit is contained in:
Daniel Hofstetter 2025-05-06 16:05:23 +02:00
parent cd93931f82
commit b78f78bedf
2 changed files with 8 additions and 27 deletions

View file

@ -251,7 +251,7 @@ fn test_uptime_with_extra_argument() {
.arg("a")
.arg("b")
.fails()
.stderr_contains("extra operand 'b'");
.stderr_contains("unexpected value 'b'");
}
/// Checks whether uptime displays the correct stderr msg when its called with a directory
#[test]