From 22031639382b4afebae2560f12c6e66ec44a2898 Mon Sep 17 00:00:00 2001 From: sigoden Date: Mon, 30 Oct 2023 17:09:53 +0800 Subject: chore: update readme and cli help --- src/cli.rs | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index ca4b4c2..0814110 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -3,42 +3,42 @@ use clap::Parser; #[derive(Parser, Debug)] #[command(author, version, about, long_about = None)] pub struct Cli { - /// List all available models - #[clap(long)] - pub list_models: bool, /// Choose a LLM model #[clap(short, long)] pub model: Option, - /// List all available roles - #[clap(long)] - pub list_roles: bool, /// Choose a role #[clap(short, long)] pub role: Option, - /// List all available sessions - #[clap(long)] - pub list_sessions: bool, - /// Initiate or reuse a session + /// Create or reuse a session #[clap(short = 's', long)] pub session: Option>, - /// Specify the text-wrapping mode (no*, auto, ) - #[clap(short = 'w', long)] - pub wrap: Option, - /// Print related information - #[clap(long)] - pub info: bool, - /// Use light theme - #[clap(long)] - pub light_theme: bool, /// Disable syntax highlighting #[clap(short = 'H', long)] pub no_highlight: bool, /// No stream output #[clap(short = 'S', long)] pub no_stream: bool, + /// Specify the text-wrapping mode (no*, auto, ) + #[clap(short = 'w', long)] + pub wrap: Option, + /// Use light theme + #[clap(long)] + pub light_theme: bool, /// Run in dry run mode #[clap(long)] pub dry_run: bool, + /// Print related information + #[clap(long)] + pub info: bool, + /// List all available models + #[clap(long)] + pub list_models: bool, + /// List all available roles + #[clap(long)] + pub list_roles: bool, + /// List all available sessions + #[clap(long)] + pub list_sessions: bool, /// Input text text: Vec, } -- cgit v1.2.3