Skip to content

Commit ece4a65

Browse files
committed
change flag name from list to supported
1 parent 0f3b82e commit ece4a65

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: src/main.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -154,14 +154,14 @@ Possible values: [{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}{11}{12}{13}{14}{15}]",
154154
)),
155155
)
156156
.arg(
157-
Arg::with_name("list")
158-
.short("l")
159-
.long("list")
157+
Arg::with_name("supported")
158+
.short("s")
159+
.long("supported")
160160
.help("Prints a list of all supported languages"),
161161
)
162162
.get_matches();
163163

164-
if matches.is_present("list") {
164+
if matches.is_present("supported") {
165165
let list = Language::iter()
166166
.filter(|x| *x != Language::Unknown)
167167
.map(|x| x.to_string().color(x.get_colors()[0]).to_string())

0 commit comments

Comments
 (0)