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

stdbuf: update to clap 4

This commit is contained in:
Terts Diepraam 2022-10-01 00:11:02 +02:00
parent 1f67351efa
commit b6a4f32889
3 changed files with 10 additions and 18 deletions

View file

@ -27,17 +27,10 @@ fn test_stdbuf_line_buffered_stdout() {
fn test_stdbuf_no_buffer_option_fails() {
let ts = TestScenario::new(util_name!());
ts.ucmd().args(&["head"]).fails().stderr_is(&format!(
"error: The following required arguments were not provided:\n \
--input <MODE>\n \
--output <MODE>\n \
--error <MODE>\n\n\
USAGE:\n \
{1} {0} OPTION... COMMAND\n\n\
For more information try --help",
ts.util_name,
ts.bin_path.to_string_lossy()
));
ts.ucmd()
.args(&["head"])
.fails()
.stderr_contains("The following required arguments were not provided:");
}
#[cfg(not(target_os = "windows"))]