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:
parent
26cc2ed440
commit
44ae927969
3 changed files with 11 additions and 8 deletions
|
@ -112,9 +112,9 @@ fn test_base32_extra_operand() {
|
|||
// Expect a failure when multiple files are specified.
|
||||
new_ucmd!()
|
||||
.arg("a.txt")
|
||||
.arg("a.txt")
|
||||
.arg("b.txt")
|
||||
.fails()
|
||||
.stderr_only("base32: extra operand 'a.txt'");
|
||||
.stderr_only("base32: extra operand 'b.txt'");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue