diff options
| author | sigoden <sigoden@gmail.com> | 2024-04-20 21:07:30 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-20 21:07:30 +0800 |
| commit | 8ab57ed74ea67d3f023aa0fcd695cb107b676501 (patch) | |
| tree | 3047e4efdc24f66b30a9df30058695b757e2c342 /src/cli.rs | |
| parent | 5d763fc10c4e3d40268ead473ccb0000b4923bd1 (diff) | |
| download | aichat-8ab57ed74ea67d3f023aa0fcd695cb107b676501.tar.gz | |
refactor: update description for cli options and config fields (#423)
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -3,43 +3,43 @@ use clap::Parser; #[derive(Parser, Debug)] #[command(author, version, about, long_about = None)] pub struct Cli { - /// Choose a LLM model + /// Select a LLM model #[clap(short, long)] pub model: Option<String>, - /// Choose a role + /// Select a role #[clap(short, long)] pub role: Option<String>, - /// Create or reuse a session + /// Start or join a session #[clap(short = 's', long)] pub session: Option<Option<String>>, - /// Whether to save the session + /// Forces the session to be saved #[clap(long)] pub save_session: bool, - /// Execute commands using natural language + /// Execute commands in natural language #[clap(short = 'e', long)] pub execute: bool, - /// Generate only code + /// Output code only #[clap(short = 'c', long)] pub code: bool, - /// Attach files to the message + /// Include files with the message #[clap(short = 'f', long, value_name = "FILE")] pub file: Vec<String>, - /// Disable syntax highlighting + /// Turn off syntax highlighting #[clap(short = 'H', long)] pub no_highlight: bool, - /// No stream output + /// Turns off stream mode #[clap(short = 'S', long)] pub no_stream: bool, - /// Specify the text-wrapping mode (no, auto, <max-width>) + /// Control text wrapping (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 + /// Display the message without sending it #[clap(long)] pub dry_run: bool, - /// Print related information + /// Dispaly information #[clap(long)] pub info: bool, /// List all available models |
