From 27cf79ffe4f381b9846c576a18c516382ef765ae Mon Sep 17 00:00:00 2001 From: Jeremy Wall Date: Mon, 25 Sep 2023 20:03:04 -0400 Subject: [PATCH] fix: misunderstood the repeat syntax for clap --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index d95e9b3..1a83ab0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,11 +45,11 @@ fn do_flags() -> clap::ArgMatches { clap::Command::new("watch") .about("Trigger that fires when a file or directory changes.") .arg( - arg!(-f --file).name("file") + arg!(-f --file ...).name("file") .takes_value(true).help("File or directory to watch for changes"), ) .arg( - arg!(-e --exclude).name("exclude") + arg!(-e --exclude ...).name("exclude") .takes_value(true).help("path names to skip when watching. Specified in unix glob format."), ) .arg(arg!(--touch).name("filetouch").help("Use file or directory timestamps to monitor for changes."))