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

base32/64: print the first extra operand, not the one before

Only one operand is allowed, so when there are multiple arguments we
should print the second argument in the error.
This commit is contained in:
Michael Debertol 2021-08-03 23:37:20 +02:00
parent 26cc2ed440
commit 44ae927969
3 changed files with 11 additions and 8 deletions

View file

@ -98,9 +98,9 @@ fn test_base64_extra_operand() {
// Expect a failure when multiple files are specified.
new_ucmd!()
.arg("a.txt")
.arg("a.txt")
.arg("b.txt")
.fails()
.stderr_only("base64: extra operand 'a.txt'");
.stderr_only("base64: extra operand 'b.txt'");
}
#[test]