From 2e4fbf4117418a6ab46a6b82002d90e8e57a9637 Mon Sep 17 00:00:00 2001 From: Neveda <63655535+Neved4@users.noreply.github.com> Date: Fri, 6 Oct 2023 14:16:02 +0200 Subject: [PATCH] Add short flag counterparts --- src/cli.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index 974857967..6e46f6f8b 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -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"]) @@ -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"]) @@ -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( @@ -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") @@ -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")