summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-03-02 21:11:28 +0800
committerGitHub <noreply@github.com>2024-03-02 21:11:28 +0800
commit3c16aff59145134885f32056fa3be9bd6bed2cce (patch)
treef285ee126374b8815840815c7334e1d48fae2791 /src/cli.rs
parentd275c33632271bf9cdbc01ef005deb9ff851370b (diff)
downloadaichat-3c16aff59145134885f32056fa3be9bd6bed2cce.tar.gz
feat: add `-c/--code` to generate only code (#327)
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 808602e..5f35df4 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -15,6 +15,9 @@ pub struct Cli {
/// Execute commands using natural language
#[clap(short = 'e', long)]
pub execute: bool,
+ /// Generate only code
+ #[clap(short = 'c', long)]
+ pub code: bool,
/// Attach files to the message to be sent.
#[clap(short = 'f', long, num_args = 1.., value_name = "FILE")]
pub file: Option<Vec<String>>,