Skip to content

Commit

Permalink
Add short flag counterparts
Browse files Browse the repository at this point in the history
  • Loading branch information
Neved4 committed Oct 6, 2023
1 parent 24a0d5d commit 2e4fbf4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ fn build_command() -> Command {
.arg(
Arg::new("style")
.long("style")
.short('l')
.action(ArgAction::Set)
.value_name("TYPE")
.value_parser(["auto", "basic", "full", "nocolor", "color", "none"])
Expand All @@ -207,6 +208,7 @@ fn build_command() -> Command {
.arg(
Arg::new("sort")
.long("sort")
.short('t')
.action(ArgAction::Set)
.value_name("METHOD")
.value_parser(["auto", "command", "mean-time"])
Expand Down Expand Up @@ -276,6 +278,7 @@ fn build_command() -> Command {
.arg(
Arg::new("show-output")
.long("show-output")
.short('d')
.action(ArgAction::SetTrue)
.conflicts_with("style")
.help(
Expand All @@ -288,6 +291,7 @@ fn build_command() -> Command {
.arg(
Arg::new("output")
.long("output")
.short('O')
.conflicts_with("show-output")
.action(ArgAction::Set)
.value_name("WHERE")
Expand All @@ -311,6 +315,7 @@ fn build_command() -> Command {
.arg(
Arg::new("input")
.long("input")
.short('I')
.action(ArgAction::Set)
.num_args(1)
.value_name("WHERE")
Expand Down

0 comments on commit 2e4fbf4

Please sign in to comment.