diff options
| author | sigoden <sigoden@gmail.com> | 2024-04-10 20:36:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-10 20:36:12 +0800 |
| commit | 4a5ee3ecb793362228a88f8c1609bd830eb88cc1 (patch) | |
| tree | 82ee7de941ed58ad771f1f141019e124c6b51827 /src/cli.rs | |
| parent | a0bd6e1d5d68c718a0533037364e3df9ad13da96 (diff) | |
| download | aichat-4a5ee3ecb793362228a88f8c1609bd830eb88cc1.tar.gz | |
feat: `-f/--file` take one value and no enter REPL (#399)
Diffstat (limited to 'src/cli.rs')
| -rw-r--r-- | src/cli.rs | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -21,9 +21,9 @@ pub struct Cli { /// 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>>, + /// Attach files to the message + #[clap(short = 'f', long, value_name = "FILE")] + pub file: Vec<String>, /// Disable syntax highlighting #[clap(short = 'H', long)] pub no_highlight: bool, |
