diff options
author | Connor Kuehl <cipkuehl@gmail.com> | 2018-05-07 08:36:02 -0700 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2018-05-08 22:57:29 +0200 |
commit | 67bed73e1507345a664239be15f0fb543a153421 (patch) | |
tree | 6cdce76c2dad8fbfc659bd0c0221940eae102507 | |
parent | ef7c39b159e920d30badf69a4c869e8527432d9a (diff) |
Add --list-languages argument to clap.
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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") |