mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
Merge pull request #975 from nathanross/normalize-coreopts-squashed
DRYer code and more UX consistency through use of coreopts
This commit is contained in:
commit
2981eb5112
55 changed files with 504 additions and 1197 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