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:
commit
8ede759415
2 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue