summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-04-10 20:36:12 +0800
committerGitHub <noreply@github.com>2024-04-10 20:36:12 +0800
commit4a5ee3ecb793362228a88f8c1609bd830eb88cc1 (patch)
tree82ee7de941ed58ad771f1f141019e124c6b51827 /src/cli.rs
parenta0bd6e1d5d68c718a0533037364e3df9ad13da96 (diff)
downloadaichat-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.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 0bab3e0..20192c8 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -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,