diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-04-26 13:07:15 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 13:07:15 -0400 |
commit | 55a9977c6252a38fac721ad789df0c7e8acf33c9 (patch) | |
tree | b549994ba0766a1f980c0565afcf325af405902e /cli/args/flags.rs | |
parent | 5f7db93d0b883abaeae392e5bd8ea5b48e9fe4b5 (diff) |
refactor(compile): remove usage of ProcState and CliOptions (#18855)
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r-- | cli/args/flags.rs | 5 |
1 files changed, 3 insertions, 2 deletions
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::<String>("config") - .map_or(ConfigFlag::Discover, ConfigFlag::Path); + .map(ConfigFlag::Path) + .unwrap_or(ConfigFlag::Discover); let mut task_flags = TaskFlags { cwd: matches.remove_one::<String>("cwd"), |