mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 12:07:46 +00:00
Merge pull request #6150 from BenWiederhake/dev-dircolors-repeated
dircolors: accept repeated flags
This commit is contained in:
commit
b869c67d6a
2 changed files with 8 additions and 0 deletions
|
@ -258,6 +258,7 @@ pub fn uu_app() -> Command {
|
||||||
.about(ABOUT)
|
.about(ABOUT)
|
||||||
.after_help(AFTER_HELP)
|
.after_help(AFTER_HELP)
|
||||||
.override_usage(format_usage(USAGE))
|
.override_usage(format_usage(USAGE))
|
||||||
|
.args_override_self(true)
|
||||||
.infer_long_args(true)
|
.infer_long_args(true)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new(options::BOURNE_SHELL)
|
Arg::new(options::BOURNE_SHELL)
|
||||||
|
|
|
@ -246,3 +246,10 @@ fn test_dircolors_for_dir_as_file() {
|
||||||
"dircolors: expected file, got directory '/'",
|
"dircolors: expected file, got directory '/'",
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_repeated() {
|
||||||
|
for arg in ["-b", "-c", "--print-database", "--print-ls-colors"] {
|
||||||
|
new_ucmd!().arg(arg).arg(arg).succeeds().no_stderr();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue