diff options
author | crowlKats <crowlkats@gmail.com> | 2021-05-27 07:23:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-27 14:23:12 +0900 |
commit | b21fa78a1e8b2c9df549b29454970b39da708a5c (patch) | |
tree | 1282055ff7703d34dc78d526ffa8ffd0b5626bee /cli/flags.rs | |
parent | d5d59bb794503416ced2c3ad6a2bb043f97ce3e5 (diff) |
feat(cli): add origin data dir to deno info (#10589)
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index 3b49d6b59..745aa7013 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -791,6 +791,11 @@ TypeScript compiler cache: Subdirectory containing TS compiler output.", .arg(Arg::with_name("file").takes_value(true).required(false)) .arg(reload_arg().requires("file")) .arg(ca_file_arg()) + .arg( + location_arg() + .conflicts_with("file") + .help("Show files used for origin bound APIs like the Web Storage API when running a script with '--location=<HREF>'") + ) // TODO(lucacasonato): remove for 2.0 .arg(no_check_arg().hidden(true)) .arg(import_map_arg()) @@ -1577,6 +1582,7 @@ fn fmt_parse(flags: &mut Flags, matches: &clap::ArgMatches) { fn info_parse(flags: &mut Flags, matches: &clap::ArgMatches) { reload_arg_parse(flags, matches); import_map_arg_parse(flags, matches); + location_arg_parse(flags, matches); ca_file_arg_parse(flags, matches); let json = matches.is_present("json"); flags.subcommand = DenoSubcommand::Info { |