diff --git a/cli/src/args.rs b/cli/src/args.rs index c9f3175..4c97709 100644 --- a/cli/src/args.rs +++ b/cli/src/args.rs @@ -130,6 +130,7 @@ pub fn get_args() -> Result> { .arg(Arg::with_name("watch-when-idle") .help("Deprecated alias for --on-busy-update=do-nothing, which will become the default in 2.0.") .short("W") + .hidden(true) .long("watch-when-idle")) .arg(Arg::with_name("notif") // TODO .help("Send a desktop notification when watchexec notices a change (experimental, behaviour may change)") diff --git a/cli/tests/snapshots/help__help_unix.snap b/cli/tests/snapshots/help__help_unix.snap index a6abada..077142d 100644 --- a/cli/tests/snapshots/help__help_unix.snap +++ b/cli/tests/snapshots/help__help_unix.snap @@ -26,7 +26,6 @@ FLAGS: -r, --restart Restart the process if it's still running. Shorthand for --on-busy-update=restart -V, --version Prints version information -v, --verbose Print debugging messages (-v, -vv, -vvv; use -vvv for bug reports) - -W, --watch-when-idle Deprecated alias for --on-busy-update=do-nothing, which will become the default in 2.0. OPTIONS: -d, --debounce Set the timeout between detected change and command execution, defaults to diff --git a/cli/tests/snapshots/help__help_windows.snap b/cli/tests/snapshots/help__help_windows.snap index 3c96ad0..6e0be6a 100644 --- a/cli/tests/snapshots/help__help_windows.snap +++ b/cli/tests/snapshots/help__help_windows.snap @@ -27,7 +27,6 @@ FLAGS: -r, --restart Restart the process if it's still running. Shorthand for --on-busy-update=restart -V, --version Prints version information -v, --verbose Print debugging messages (-v, -vv, -vvv; use -vvv for bug reports) - -W, --watch-when-idle Deprecated alias for --on-busy-update=do-nothing, which will become the default in 2.0. OPTIONS: -d, --debounce Set the timeout between detected change and command execution, defaults to