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

mktemp: match GNU error message on too many args

Update the usage message when too many template arguments are given on
the command line to match that of GNU mktemp:

    mktemp: too many templates
    Try 'mktemp --help' for more information.

This fixes the test case `too-many` in the GNU test suite file
`tests/misc/mktemp.pl`.
This commit is contained in:
Jeffrey Finkelstein 2022-09-17 16:04:28 -04:00 committed by Sylvestre Ledru
parent 9ed546b02c
commit 7b35749ea6
2 changed files with 15 additions and 3 deletions

View file

@ -613,7 +613,11 @@ fn test_too_few_xs_suffix_directory() {
#[test]
fn test_too_many_arguments() {
new_ucmd!().args(&["-q", "a", "b"]).fails().code_is(1);
new_ucmd!()
.args(&["-q", "a", "b"])
.fails()
.code_is(1)
.usage_error("too many templates");
}
#[test]