mirror of
https://github.com/watchexec/watchexec.git
synced 2024-09-28 22:21:33 +02:00
Mention time units explicitly in CLI interface
The force-poll flag does not mention time units as opposed to the debounce flag and to make it even more confusing, the comment in the code says something else than the output: *** Polling for changes every 2000 ms This patch makes it clear what units are used.
This commit is contained in:
parent
5843deb573
commit
f8f6c0ac5a
@ -71,7 +71,7 @@ pub struct Args {
|
|||||||
/// Force using the polling backend.
|
/// Force using the polling backend.
|
||||||
#[builder(default)]
|
#[builder(default)]
|
||||||
pub poll: bool,
|
pub poll: bool,
|
||||||
/// Interval for polling. (seconds)
|
/// Interval for polling. (milliseconds)
|
||||||
#[builder(default = "2")]
|
#[builder(default = "2")]
|
||||||
pub poll_interval: u32,
|
pub poll_interval: u32,
|
||||||
#[builder(default)]
|
#[builder(default)]
|
||||||
@ -200,7 +200,7 @@ where
|
|||||||
.short("p")
|
.short("p")
|
||||||
.long("postpone"))
|
.long("postpone"))
|
||||||
.arg(Arg::with_name("poll")
|
.arg(Arg::with_name("poll")
|
||||||
.help("Force polling mode")
|
.help("Force polling mode (interval in milliseconds)")
|
||||||
.long("force-poll")
|
.long("force-poll")
|
||||||
.value_name("interval"))
|
.value_name("interval"))
|
||||||
.arg(Arg::with_name("no-shell")
|
.arg(Arg::with_name("no-shell")
|
||||||
|
Loading…
Reference in New Issue
Block a user