1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 19:47:45 +00:00

Merge pull request #3322 from jfinkels/df-multiple-columns-error

df: error on duplicate columns in --output arg
This commit is contained in:
Sylvestre Ledru 2022-03-29 22:30:14 +02:00 committed by GitHub
commit 05ec34eb94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 85 additions and 24 deletions

View file

@ -272,3 +272,11 @@ fn test_output_file_specific_files() {
]
);
}
#[test]
fn test_output_field_no_more_than_once() {
new_ucmd!()
.arg("--output=target,source,target")
.fails()
.usage_error("option --output: field 'target' used more than once");
}