Add --list-languages argument to clap.

This commit is contained in:
Connor Kuehl authored and David Peter committed 2018-05-08 22:57:29 +02:00
1 parent ef7c39b159
commit 67bed73e15
1 file changed
+6
+6
View File
@@ -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")