Skip to content

Commit 81e5334

Browse files
committed
add possible values to ascii colors option
1 parent a7f25a9 commit 81e5334

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/main.rs

+7-2
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,11 @@ fn main() -> Result<()> {
156156
.long("ascii-colors")
157157
.multiple(true)
158158
.takes_value(true)
159+
.possible_values(&[
160+
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14",
161+
"15",
162+
])
163+
.hide_possible_values(true)
159164
.help(&format!(
160165
"Colors to print the ascii art. Possible values: [{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}{11}{12}{13}{14}{15}]",
161166
"0".black(),
@@ -202,7 +207,7 @@ fn main() -> Result<()> {
202207
.help("Which image backend to use."),
203208
)
204209
.arg(
205-
Arg::with_name("no-merges-commits")
210+
Arg::with_name("no-merge-commits")
206211
.long("no-merge-commits")
207212
.help("Ignore merge commits"),
208213
)
@@ -304,7 +309,7 @@ fn main() -> Result<()> {
304309
None
305310
};
306311

307-
let no_merges = matches.is_present("no-merges-commits");
312+
let no_merges = matches.is_present("no-merge-commits");
308313

309314
let color_blocks_flag = matches.is_present("no-color-blocks");
310315

0 commit comments

Comments
 (0)