Skip to content

Commit cda3d5a

Browse files
committed
ls: add possible value for --color=
1 parent a05628f commit cda3d5a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/uu/ls/src/ls.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,9 @@ only ignore '.' and '..'.",
11111111
.long(options::COLOR)
11121112
.help("Color output based on file type.")
11131113
.takes_value(true)
1114+
.possible_values(&[
1115+
"always", "yes", "force", "auto", "tty", "if-tty", "never", "no", "none",
1116+
])
11141117
.require_equals(true)
11151118
.min_values(0),
11161119
)

0 commit comments

Comments
 (0)