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
2 changed files with 9 additions and 0 deletions
+1
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)
+8
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();
}