mirror of
https://github.com/zaphar/runwhen.git
synced 2025-07-22 20:39:49 -04:00
Flag parsing bugfix
This commit is contained in:
parent
a57d6f9551
commit
5cfed8963f
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -295,7 +295,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "runwhen"
|
name = "runwhen"
|
||||||
version = "0.0.5"
|
version = "0.0.6"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"clap",
|
"clap",
|
||||||
"humantime",
|
"humantime",
|
||||||
|
@ -45,10 +45,9 @@ fn do_flags() -> clap::ArgMatches {
|
|||||||
.about("Trigger that fires when a file or directory changes.")
|
.about("Trigger that fires when a file or directory changes.")
|
||||||
.arg(
|
.arg(
|
||||||
arg!(-f --file)
|
arg!(-f --file)
|
||||||
.name("filetouch")
|
.takes_value(true).value_parser(value_parser!(PathBuf)).help("File or directory to watch for changes"),
|
||||||
.value_parser(value_parser!(PathBuf)).help("File or directory to watch for changes"),
|
|
||||||
)
|
)
|
||||||
.arg(arg!(--touch).help("Use file or directory timestamps to monitor for changes."))
|
.arg(arg!(--touch).name("filetouch").help("Use file or directory timestamps to monitor for changes."))
|
||||||
.arg(arg!(--poll).value_parser(value_parser!(humantime::Duration)).help("Duration of time between polls")))
|
.arg(arg!(--poll).value_parser(value_parser!(humantime::Duration)).help("Duration of time between polls")))
|
||||||
.subcommand(
|
.subcommand(
|
||||||
clap::Command::new("timer")
|
clap::Command::new("timer")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user