Skip to content

Commit

Permalink
fix(cli): add prefix to install commands in help (#26318)
Browse files Browse the repository at this point in the history
Some `deno add` and `deno install` example usage commands didn't have
the `jsr:` or `npm:` prefixes.

---------

Signed-off-by: Marvin Hagemeister <[email protected]>
Co-authored-by: Bartek Iwańczuk <[email protected]>
  • Loading branch information
marvinhagemeister and bartlomieju authored Oct 16, 2024
1 parent e515f3d commit 4385020
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/args/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1659,10 +1659,10 @@ fn add_subcommand() -> Command {
"add",
cstr!(
"Add dependencies to your configuration file.
<p(245)>deno add @std/path</>
<p(245)>deno add jsr:@std/path</>
You can add multiple dependencies at once:
<p(245)>deno add @std/path @std/assert</>"
<p(245)>deno add jsr:@std/path jsr:@std/assert</>"
),
UnstableArgsConfig::None,
)
Expand Down Expand Up @@ -2470,7 +2470,7 @@ in the package cache. If no dependency is specified, installs all dependencies l
If the <p(245)>--entrypoint</> flag is passed, installs the dependencies of the specified entrypoint(s).
<p(245)>deno install</>
<p(245)>deno install @std/bytes</>
<p(245)>deno install jsr:@std/bytes</>
<p(245)>deno install npm:chalk</>
<p(245)>deno install --entrypoint entry1.ts entry2.ts</>
Expand Down

0 comments on commit 4385020

Please sign in to comment.