1
Fork 0
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:
mpkh 2016-08-20 18:44:17 +00:00 committed by GitHub
commit 2981eb5112
55 changed files with 504 additions and 1197 deletions

View file

@ -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" }));
}
}

View file

@ -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" }));
}
}

View file

@ -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]