summaryrefslogtreecommitdiff
path: root/cli/args/flags.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-10-28 16:19:55 -0400
committerGitHub <noreply@github.com>2022-10-28 16:19:55 -0400
commitedaceecec771cf0395639175b5a21d20530f6080 (patch)
tree8c9708d095a8ed7c9e897869a68f9d2c9b4d7ffd /cli/args/flags.rs
parent2c674dcd20aeb19d694e03d969f5792d1581e87a (diff)
feat: support npm specifiers in `deno info` for display text output only (#16470)
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 c313515e3..90899704e 100644
--- a/cli/args/flags.rs
+++ b/cli/args/flags.rs
@@ -1212,6 +1212,7 @@ TypeScript compiler cache: Subdirectory containing TS compiler output.",
.arg(no_config_arg())
.arg(config_arg())
.arg(import_map_arg())
+ .arg(local_npm_arg())
.arg(
Arg::new("json")
.long("json")
@@ -2512,6 +2513,7 @@ fn info_parse(flags: &mut Flags, matches: &clap::ArgMatches) {
import_map_arg_parse(flags, matches);
location_arg_parse(flags, matches);
ca_file_arg_parse(flags, matches);
+ local_npm_args_parse(flags, matches);
let json = matches.is_present("json");
flags.subcommand = DenoSubcommand::Info(InfoFlags {
file: matches.value_of("file").map(|f| f.to_string()),