summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-10-22 14:15:00 -0700
committerGitHub <noreply@github.com>2024-10-22 21:15:00 +0000
commit5e020ebc3507947cd9e999a4f7213d2d0d5416cf (patch)
treee5a26cc4e33ff55b7a6602228921b4a9d5a8e8d1 /cli/args/flags.rs
parent28b5640657ce875a73eb3a1ffed287a61de164b4 (diff)
fix(check): support `--frozen` on deno check (#26479)
Fixes https://github.com/denoland/deno/issues/26391
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r--cli/args/flags.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index cb3d55e50..5c2f83561 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -1856,6 +1856,7 @@ Unless --reload is specified, this command will not re-download already cached d
.required_unless_present("help")
.value_hint(ValueHint::FilePath),
)
+ .arg(frozen_lockfile_arg())
.arg(allow_import_arg())
}
)
@@ -4373,6 +4374,7 @@ fn check_parse(
flags.type_check_mode = TypeCheckMode::Local;
compile_args_without_check_parse(flags, matches)?;
unstable_args_parse(flags, matches, UnstableArgsConfig::ResolutionAndRuntime);
+ frozen_lockfile_arg_parse(flags, matches);
let files = matches.remove_many::<String>("file").unwrap().collect();
if matches.get_flag("all") || matches.get_flag("remote") {
flags.type_check_mode = TypeCheckMode::All;