diff --git a/src/cmd/command_prelude.rs b/src/cmd/command_prelude.rs index ea2d3095..37199425 100644 --- a/src/cmd/command_prelude.rs +++ b/src/cmd/command_prelude.rs @@ -37,6 +37,7 @@ pub trait CommandExt: Sized { self._arg(arg!(-o --open "Opens the compiled book in a web browser")) } + #[cfg(any(feature = "watch", feature = "serve"))] fn arg_watcher(self) -> Self { #[cfg(feature = "watch")] return self._arg(