summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-16 17:02:09 +0800
committerGitHub <noreply@github.com>2023-03-16 17:02:09 +0800
commit1ef97b2f32caecdb2eef9fe3755390f36d96eae5 (patch)
tree269d9504e5959d2ca161862e0935103adc84b393 /src/cli.rs
parent4a74f5cd72160585721dbce1e92c110125d046dd (diff)
downloadaichat-1ef97b2f32caecdb2eef9fe3755390f36d96eae5.tar.gz
feat: support multiple models (#71)
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index cfc1476..9211878 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -3,6 +3,9 @@ use clap::Parser;
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
pub struct Cli {
+ /// Choose a model
+ #[clap(short, long)]
+ pub model: Option<String>,
/// Add a GPT prompt
#[clap(short, long)]
pub prompt: Option<String>,
@@ -15,6 +18,9 @@ pub struct Cli {
/// List all roles
#[clap(long)]
pub list_roles: bool,
+ /// List all models
+ #[clap(long)]
+ pub list_models: bool,
/// Select a role
#[clap(short, long)]
pub role: Option<String>,