mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-19 04:21:06 +00:00
Add --list-languages argument to clap.
This commit is contained in:
parent
ef7c39b159
commit
67bed73e15
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user