diff options
Diffstat (limited to 'src/cmd/watch.rs')
-rw-r--r-- | src/cmd/watch.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cmd/watch.rs b/src/cmd/watch.rs index 202e570..f9fc7c3 100644 --- a/src/cmd/watch.rs +++ b/src/cmd/watch.rs @@ -87,8 +87,11 @@ pub fn cmd<'a, 'b>(app: clap::App<'a, 'b>) -> clap::App<'a, 'b> { } pub fn config( - config: Option<config::Config>, + mut config: Option<config::Config>, ) -> Result<Box<dyn crate::config::Config>> { + if config.is_none() { + config = crate::config::wizard::run()?; + } let config: Config = if let Some(config) = config { config .try_into() |