From f29ca574468bd9adcc492cae9d77c43a93abb8b5 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 6 Mar 2023 10:08:59 +0800 Subject: chore: optimize cli help --- src/cli.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 5d709ea..8e50161 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -3,16 +3,16 @@ use clap::Parser; #[derive(Parser, Debug)] #[command(author, version, about, long_about = None)] pub struct Cli { + /// Turn off highlight + #[clap(short = 'H', long)] + pub no_highlight: bool, /// List all roles #[clap(short = 'L', long)] pub list_roles: bool, /// Select a role #[clap(short, long)] pub role: Option, - /// Turn off highlight - #[clap(short = 'H', long)] - pub no_highlight: bool, - /// Input text, if no input text, enter interactive mode + /// Input text text: Vec, } -- cgit v1.2.3