summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-06 10:08:59 +0800
committersigoden <sigoden@gmail.com>2023-03-06 10:08:59 +0800
commitf29ca574468bd9adcc492cae9d77c43a93abb8b5 (patch)
treef67d7240a7d90a59b3abde213a1106e678d477d7
parentcfb46ca0de8493a1ab5026cd44f88f092b26f91d (diff)
downloadaichat-f29ca574468bd9adcc492cae9d77c43a93abb8b5.tar.gz
chore: optimize cli help
-rw-r--r--Cargo.toml2
-rw-r--r--src/cli.rs8
2 files changed, 5 insertions, 5 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 6d2403c..b6275de 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,7 @@ name = "aichat"
version = "0.3.0"
edition = "2021"
authors = ["sigoden <sigoden@gmail.com>"]
-description = "Chat with OpenAI GPT-3.5 in the terminal."
+description = "A powerful chatgpt cli."
license = "MIT OR Apache-2.0"
homepage = "https://github.com/sigoden/aichat"
repository = "https://github.com/sigoden/aichat"
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<String>,
- /// Turn off highlight
- #[clap(short = 'H', long)]
- pub no_highlight: bool,
- /// Input text, if no input text, enter interactive mode
+ /// Input text
text: Vec<String>,
}