1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

Merge pull request #5681 from just1602/5667_sort_should_accept_multiple_ignore_case_flag

sort: allow `-f` to be pass multiple time
This commit is contained in:
Terts Diepraam 2023-12-21 10:09:57 +01:00 committed by GitHub
commit 8ede759415
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -1280,6 +1280,7 @@ pub fn uu_app() -> Command {
.infer_long_args(true)
.disable_help_flag(true)
.disable_version_flag(true)
.args_override_self(true)
.arg(
Arg::new(options::HELP)
.long(options::HELP)

View file

@ -1181,3 +1181,11 @@ fn test_tmp_files_deleted_on_sigint() {
fn test_same_sort_mode_twice() {
new_ucmd!().args(&["-k", "2n,2n", "empty.txt"]).succeeds();
}
#[test]
fn test_args_override() {
new_ucmd!()
.args(&["-f", "-f"])
.pipe_in("foo")
.succeeds();
}