From 67bed73e1507345a664239be15f0fb543a153421 Mon Sep 17 00:00:00 2001 From: Connor Kuehl Date: Mon, 7 May 2018 08:36:02 -0700 Subject: [PATCH] Add --list-languages argument to clap. --- src/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.rs b/src/main.rs index c30e0313..29e944e8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -453,6 +453,12 @@ fn run() -> Result<()> { .default_value("auto") .help("When to use the pager"), ) + .arg( + Arg::with_name("list languages") + .long("list-languages") + .takes_value(false) + .help("Displays supported languages") + ) .subcommand( SubCommand::with_name("cache") .about("Modify the syntax-definition and theme cache")