summaryrefslogtreecommitdiff
path: root/cli/args
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-31 01:22:20 +0100
committerGitHub <noreply@github.com>2024-08-31 00:22:20 +0000
commitc29e5b9d1edc7fb8a67e58ba43ca95eb417025a2 (patch)
treefe82868cc22372e0ed36b2f2f34e80211e535fe8 /cli/args
parenta527b3a5de86d8753f7881faff694fbe3797d93d (diff)
fix(upgrade): more informative information on invalid version (#25319)
Before: ``` $ deno upgrade v1.xx error: Invalid version passed ``` After: ``` $ deno upgrade v1.xx error: Invalid version passed (v1.xx) Example usage: deno upgrade | deno upgrade 1.46 | deno upgrade canary ``` Also updates help text to use "shorthand version" without flags, but a positional arg.
Diffstat (limited to 'cli/args')
-rw-r--r--cli/args/flags.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs
index a0cf4d7bf..5942b42d4 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -1173,7 +1173,7 @@ static DENO_HELP: &str = cstr!(
<p(245)>deno test | deno test test.ts</>
<g>publish</> Publish the current working directory's package or workspace
<g>upgrade</> Upgrade deno executable to given version
- <p(245)>deno upgrade | deno upgrade --version=1.45.0 | deno upgrade --canary</>
+ <p(245)>deno upgrade | deno upgrade 1.45.0 | deno upgrade canary</>
{after-help}
<y>Docs:</> https://docs.deno.com