mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Add --list-languages argument to clap.
This commit is contained in:
1 parent
ef7c39b159
commit
67bed73e15
1 file changed
+6
@@ -453,6 +453,12 @@ fn run() -> Result<()> {
|
|||||||
.default_value("auto")
|
.default_value("auto")
|
||||||
.help("When to use the pager"),
|
.help("When to use the pager"),
|
||||||
)
|
)
|
||||||
|
.arg(
|
||||||
|
Arg::with_name("list languages")
|
||||||
|
.long("list-languages")
|
||||||
|
.takes_value(false)
|
||||||
|
.help("Displays supported languages")
|
||||||
|
)
|
||||||
.subcommand(
|
.subcommand(
|
||||||
SubCommand::with_name("cache")
|
SubCommand::with_name("cache")
|
||||||
.about("Modify the syntax-definition and theme cache")
|
.about("Modify the syntax-definition and theme cache")
|
||||||
|
|||||||
Reference in new issue
Block a user