Skip to content

Commit

Permalink
chore: remove --no-check from deno info (#7439)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato authored Sep 12, 2020
1 parent d048f58 commit 82d0f7e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions cli/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ fn info_parse(flags: &mut Flags, matches: &clap::ArgMatches) {
ca_file_arg_parse(flags, matches);
unstable_arg_parse(flags, matches);
let json = matches.is_present("json");
no_check_arg_parse(flags, matches);
flags.subcommand = DenoSubcommand::Info {
file: matches.value_of("file").map(|f| f.to_string()),
json,
Expand Down Expand Up @@ -874,7 +873,8 @@ 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(no_check_arg())
// TODO(lucacasonato): remove for 2.0
.arg(no_check_arg().hidden(true))
.arg(unstable_arg())
.arg(
Arg::with_name("json")
Expand Down
5 changes: 0 additions & 5 deletions cli/tests/031_info_no_check.out

This file was deleted.

5 changes: 5 additions & 0 deletions cli/tests/031_info_ts_error.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[WILDCARD]
local: [WILDCARD]031_info_ts_error.ts
type: TypeScript
deps: 0 unique (total [WILDCARD])
[WILDCARD]031_info_ts_error.ts ([WILDCARD])
File renamed without changes.
6 changes: 3 additions & 3 deletions cli/tests/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1518,9 +1518,9 @@ itest!(_030_eval_ts {
output: "030_eval_ts.out",
});

itest!(_031_info_no_check {
args: "info --no-check 031_info_no_check.ts",
output: "031_info_no_check.out",
itest!(_031_info_ts_error {
args: "info 031_info_ts_error.ts",
output: "031_info_ts_error.out",
});

itest!(_033_import_map {
Expand Down

0 comments on commit 82d0f7e

Please sign in to comment.