summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r--cli/args/flags.rs5
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"),