mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
impl: use coreopts for brevity and consistent UX
This commit is contained in:
parent
edc3bf7c08
commit
36503a77c7
50 changed files with 445 additions and 1154 deletions
|
@ -76,7 +76,7 @@ fn test_wrap_no_arg() {
|
|||
new_ucmd()
|
||||
.arg(wrap_param)
|
||||
.fails()
|
||||
.stderr_only(format!("base32: Argument to option '{}' missing.\nTry 'base32 --help' for more information.\n",
|
||||
.stderr_only(format!("base32: error: Argument to option '{}' missing.\n",
|
||||
if wrap_param == "-w" { "w" } else { "wrap" }));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -68,7 +68,7 @@ fn test_wrap_no_arg() {
|
|||
new_ucmd()
|
||||
.arg(wrap_param)
|
||||
.fails()
|
||||
.stderr_only(format!("base64: Argument to option '{}' missing.\nTry 'base64 --help' for more information.\n",
|
||||
.stderr_only(format!("base64: error: Argument to option '{}' missing.\n",
|
||||
if wrap_param == "-w" { "w" } else { "wrap" }));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ fn test_install_help() {
|
|||
let (_, mut ucmd) = at_and_ucmd();
|
||||
|
||||
assert!(
|
||||
ucmd.arg("--help").succeeds().no_stderr().stdout.contains("Usage:"));
|
||||
ucmd.arg("--help").succeeds().no_stderr().stdout.contains("Options:"));
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue