diff options
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index dc0e932ef..3075eda40 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -1140,6 +1140,7 @@ Ignore linting a file by adding an ignore comment at the top of the file: .multiple(true) .required(false), ) + .arg(watch_arg()) } fn repl_subcommand<'a, 'b>() -> App<'a, 'b> { @@ -1964,6 +1965,7 @@ fn lsp_parse(flags: &mut Flags, _matches: &clap::ArgMatches) { fn lint_parse(flags: &mut Flags, matches: &clap::ArgMatches) { config_arg_parse(flags, matches); + flags.watch = matches.is_present("watch"); let files = match matches.values_of("files") { Some(f) => f.map(PathBuf::from).collect(), None => vec![], |