on master help sign in
Add --list-languages argument to clap.
commit67bed73e1507345a664239be15f0fb543a153421 authorConnor Kuehl <cipkuehl@gmail.com> dateMon 7 May 2018, 08:36 (9 years ago) parentef7c39b
1 file changed+6
src/main.rs+6
src/main.rs+6
@@ -453,6 +453,12 @@ fn run() -> Result<()> {
453453 .default_value("auto")
454454 .help("When to use the pager"),
455455 )
456+ .arg(
457+ Arg::with_name("list languages")
458+ .long("list-languages")
459+ .takes_value(false)
460+ .help("Displays supported languages")
461+ )
456462 .subcommand(
457463 SubCommand::with_name("cache")
458464 .about("Modify the syntax-definition and theme cache")