From 55a9977c6252a38fac721ad789df0c7e8acf33c9 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 26 Apr 2023 13:07:15 -0400 Subject: refactor(compile): remove usage of ProcState and CliOptions (#18855) --- cli/args/flags.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cli/args') diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 7d5c59fd7..0efaa5ea3 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -2230,7 +2230,7 @@ fn check_arg(checks_local_by_default: bool) -> Arg { default, so adding --check is redundant. If the value of '--check=all' is supplied, diagnostic errors from remote modules will be included. - + Alternatively, the 'deno check' subcommand can be used.", ) } else { @@ -2745,7 +2745,8 @@ fn run_parse(flags: &mut Flags, matches: &mut ArgMatches) { fn task_parse(flags: &mut Flags, matches: &mut ArgMatches) { flags.config_flag = matches .remove_one::("config") - .map_or(ConfigFlag::Discover, ConfigFlag::Path); + .map(ConfigFlag::Path) + .unwrap_or(ConfigFlag::Discover); let mut task_flags = TaskFlags { cwd: matches.remove_one::("cwd"), -- cgit v1.2.3