mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-29 22:51:33 +02:00
parent
df8977b37e
commit
7fd04573cd
@ -78,7 +78,7 @@ pub fn get_args(tagged_filterer: bool) -> Result<ArgMatches<'static>> {
|
|||||||
.long("kill"))
|
.long("kill"))
|
||||||
.arg(Arg::with_name("debounce")
|
.arg(Arg::with_name("debounce")
|
||||||
.help_heading(Some(OPTSET_BEHAVIOUR))
|
.help_heading(Some(OPTSET_BEHAVIOUR))
|
||||||
.help("Set the timeout between detected change and command execution, defaults to 100ms")
|
.help("Set the timeout between detected change and command execution, defaults to 50ms")
|
||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.value_name("milliseconds")
|
.value_name("milliseconds")
|
||||||
.short("d")
|
.short("d")
|
||||||
|
@ -30,7 +30,7 @@ pub fn runtime(args: &ArgMatches<'static>) -> Result<RuntimeConfig> {
|
|||||||
|
|
||||||
config.action_throttle(Duration::from_millis(
|
config.action_throttle(Duration::from_millis(
|
||||||
args.value_of("debounce")
|
args.value_of("debounce")
|
||||||
.unwrap_or("100")
|
.unwrap_or("50")
|
||||||
.parse()
|
.parse()
|
||||||
.into_diagnostic()?,
|
.into_diagnostic()?,
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user