We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e0ac38 commit 0f3b82eCopy full SHA for 0f3b82e
src/main.rs
@@ -155,17 +155,18 @@ Possible values: [{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}{11}{12}{13}{14}{15}]",
155
)
156
.arg(
157
Arg::with_name("list")
158
- .short("l")
159
- .long("list")
160
- .help("Prints a list of all supported languages")
+ .short("l")
+ .long("list")
+ .help("Prints a list of all supported languages"),
161
162
.get_matches();
163
164
if matches.is_present("list") {
165
let list = Language::iter()
166
.filter(|x| *x != Language::Unknown)
167
.map(|x| x.to_string().color(x.get_colors()[0]).to_string())
168
- .collect::<Vec<String>>().join(", ");
+ .collect::<Vec<String>>()
169
+ .join(", ");
170
171
print!("Supported languages:\n\n{}\n", list);
172
std::process::exit(0);
0 commit comments