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

yes: allow --version

Test: tests/help/help-version-getopt.sh
This commit is contained in:
Sylvestre Ledru 2023-06-19 19:10:53 +02:00
parent 66723e0961
commit bf7f3783d1
2 changed files with 7 additions and 1 deletions

View file

@ -35,6 +35,11 @@ fn test_invalid_arg() {
new_ucmd!().arg("--definitely-invalid").fails().code_is(1);
}
#[test]
fn test_version() {
new_ucmd!().arg("--version").succeeds();
}
#[test]
fn test_simple() {
run(NO_ARGS, b"y\ny\ny\ny\n");