summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-10-30 17:09:53 +0800
committersigoden <sigoden@gmail.com>2023-10-30 17:10:52 +0800
commit22031639382b4afebae2560f12c6e66ec44a2898 (patch)
treecd72a9b8e9f2348dd5f7ad15cd540ff0f66884e9 /src/cli.rs
parent5c0383f908eaee86539103b536a95bd94d32d401 (diff)
downloadaichat-22031639382b4afebae2560f12c6e66ec44a2898.tar.gz
chore: update readme and cli help
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs38
1 files changed, 19 insertions, 19 deletions
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<String>,
- /// List all available roles
- #[clap(long)]
- pub list_roles: bool,
/// Choose a role
#[clap(short, long)]
pub role: Option<String>,
- /// 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<Option<String>>,
- /// Specify the text-wrapping mode (no*, auto, <max-width>)
- #[clap(short = 'w', long)]
- pub wrap: Option<String>,
- /// 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, <max-width>)
+ #[clap(short = 'w', long)]
+ pub wrap: Option<String>,
+ /// 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<String>,
}