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:
parent
cd93931f82
commit
b78f78bedf
2 changed files with 8 additions and 27 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue