1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 04:27:45 +00:00

sort: allow -f to be pass multiple time

Fix #5667
This commit is contained in:
Justin ! 2023-12-19 21:33:06 -05:00
parent c20f009da4
commit a6ba81db20
No known key found for this signature in database
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();
}