From 5057f58145ab47276fdc4392619888e37aea8864 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Thu, 19 Sep 2024 05:55:50 +1000 Subject: feat: suggest `deno install --entrypoint` instead of `deno cache` (#25228) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hides `deno cache` from `--help` output. --------- Signed-off-by: Asher Gomez Co-authored-by: Bartek IwaƄczuk --- cli/args/flags.rs | 3 ++- cli/args/lockfile.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'cli/args') 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 Read more: 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(()) -- cgit v1.2.3