diff options
| author | sigoden <sigoden@gmail.com> | 2024-03-02 21:11:28 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-02 21:11:28 +0800 |
| commit | 3c16aff59145134885f32056fa3be9bd6bed2cce (patch) | |
| tree | f285ee126374b8815840815c7334e1d48fae2791 /src/cli.rs | |
| parent | d275c33632271bf9cdbc01ef005deb9ff851370b (diff) | |
| download | aichat-3c16aff59145134885f32056fa3be9bd6bed2cce.tar.gz | |
feat: add `-c/--code` to generate only code (#327)
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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>>, |
