mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
dircolors: accept repeated flags
This commit is contained in:
committed by
Sylvestre Ledru
parent
c99e1c6813
commit
8e794d0654
@@ -258,6 +258,7 @@ pub fn uu_app() -> Command {
|
||||
.about(ABOUT)
|
||||
.after_help(AFTER_HELP)
|
||||
.override_usage(format_usage(USAGE))
|
||||
.args_override_self(true)
|
||||
.infer_long_args(true)
|
||||
.arg(
|
||||
Arg::new(options::BOURNE_SHELL)
|
||||
|
||||
@@ -246,3 +246,10 @@ fn test_dircolors_for_dir_as_file() {
|
||||
"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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user