Skip to content

Commit

Permalink
change flag name from list to supported
Browse files Browse the repository at this point in the history
  • Loading branch information
vypxl committed Oct 22, 2019
1 parent 0f3b82e commit ece4a65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@ Possible values: [{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}{11}{12}{13}{14}{15}]",
)),
)
.arg(
Arg::with_name("list")
.short("l")
.long("list")
Arg::with_name("supported")
.short("s")
.long("supported")
.help("Prints a list of all supported languages"),
)
.get_matches();

if matches.is_present("list") {
if matches.is_present("supported") {
let list = Language::iter()
.filter(|x| *x != Language::Unknown)
.map(|x| x.to_string().color(x.get_colors()[0]).to_string())
Expand Down

0 comments on commit ece4a65

Please sign in to comment.