mirror of
https://github.com/zaphar/runwhen.git
synced 2025-07-22 20:39:49 -04:00
fix: misunderstood the repeat syntax for clap
This commit is contained in:
parent
fb954c6f0d
commit
27cf79ffe4
@ -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."))
|
||||
|
Loading…
x
Reference in New Issue
Block a user