summaryrefslogtreecommitdiff
path: root/cli/args
diff options
context:
space:
mode:
authorAsher Gomez <ashersaupingomez@gmail.com>2024-09-19 05:55:50 +1000
committerGitHub <noreply@github.com>2024-09-18 19:55:50 +0000
commit5057f58145ab47276fdc4392619888e37aea8864 (patch)
treedbcc9551eaffee6f1a7c8891977e0c36f1e67343 /cli/args
parenta1d0a427e807959666a6b23ae015e4e04659abf5 (diff)
feat: suggest `deno install --entrypoint` instead of `deno cache` (#25228)
Hides `deno cache` from `--help` output. --------- Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com> Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/args')
-rw-r--r--cli/args/flags.rs3
-rw-r--r--cli/args/lockfile.rs2
2 files changed, 3 insertions, 2 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index d66ee253f..79ee38d75 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -1651,7 +1651,8 @@ Future runs of this module will trigger no downloads or compilation unless --rel
<y>Read more:</> <c>https://docs.deno.com/go/cache</>"),
UnstableArgsConfig::ResolutionOnly,
- )
+)
+ .hide(true)
.defer(|cmd| {
compile_args(cmd)
.arg(check_arg(false))
diff --git a/cli/args/lockfile.rs b/cli/args/lockfile.rs
index 35552b5b4..59ec7f0ef 100644
--- a/cli/args/lockfile.rs
+++ b/cli/args/lockfile.rs
@@ -246,7 +246,7 @@ impl CliLockfile {
// has an extra newline at the end
let diff = diff.trim_end();
Err(deno_core::anyhow::anyhow!(
- "The lockfile is out of date. Run `deno cache --frozen=false`, `deno install --frozen=false`, or rerun with `--frozen=false` to update it.\nchanges:\n{diff}"
+ "The lockfile is out of date. Run `deno install --frozen=false`, or rerun with `--frozen=false` to update it.\nchanges:\n{diff}"
))
} else {
Ok(())