Make --run-initially default, add --postpone flag to disable
This commit is contained in:
parent
9265b5eef9
commit
85f0a4aaaf
|
@ -1,6 +1,6 @@
|
|||
[root]
|
||||
name = "watchexec"
|
||||
version = "1.2.2"
|
||||
version = "1.2.3"
|
||||
dependencies = [
|
||||
"clap 2.14.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"env_logger 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
|
|
@ -79,9 +79,10 @@ pub fn get_args() -> Args {
|
|||
.arg(Arg::with_name("no-vcs-ignore")
|
||||
.help("Skip auto-loading of .gitignore files for filtering")
|
||||
.long("no-vcs-ignore"))
|
||||
.arg(Arg::with_name("run-initially")
|
||||
.help("Run command initially, before first file change")
|
||||
.long("run-initially"))
|
||||
.arg(Arg::with_name("postpone")
|
||||
.help("Wait until first change to execute command")
|
||||
.short("p")
|
||||
.long("postpone"))
|
||||
.arg(Arg::with_name("poll")
|
||||
.help("Forces polling mode")
|
||||
.long("force-poll")
|
||||
|
@ -125,7 +126,7 @@ pub fn get_args() -> Args {
|
|||
clear_screen: args.is_present("clear"),
|
||||
restart: args.is_present("restart"),
|
||||
debug: args.is_present("debug"),
|
||||
run_initially: args.is_present("run-initially"),
|
||||
run_initially: !args.is_present("postpone"),
|
||||
no_vcs_ignore: args.is_present("no-vcs-ignore"),
|
||||
poll: args.occurrences_of("poll") > 0,
|
||||
poll_interval: poll_interval,
|
||||
|
|
Loading…
Reference in New Issue