1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 11:37:44 +00:00

Merge pull request #2738 from equal-l2/ls-fix-color-comp

ls: add possible value for `--color=`
This commit is contained in:
Michael Debertol 2021-11-05 21:04:05 +01:00 committed by GitHub
commit a7aa6b8e3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1111,6 +1111,9 @@ only ignore '.' and '..'.",
.long(options::COLOR)
.help("Color output based on file type.")
.takes_value(true)
.possible_values(&[
"always", "yes", "force", "auto", "tty", "if-tty", "never", "no", "none",
])
.require_equals(true)
.min_values(0),
)