diff --git a/cli/flags.rs b/cli/flags.rs index 18fd3b29e5..9dcfad43d2 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -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, @@ -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") diff --git a/cli/tests/031_info_no_check.out b/cli/tests/031_info_no_check.out deleted file mode 100644 index 6014900558..0000000000 --- a/cli/tests/031_info_no_check.out +++ /dev/null @@ -1,5 +0,0 @@ -[WILDCARD] -local: [WILDCARD]031_info_no_check.ts -type: TypeScript -deps: 0 unique (total [WILDCARD]) -[WILDCARD]031_info_no_check.ts ([WILDCARD]) diff --git a/cli/tests/031_info_ts_error.out b/cli/tests/031_info_ts_error.out new file mode 100644 index 0000000000..8c3064cdf2 --- /dev/null +++ b/cli/tests/031_info_ts_error.out @@ -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]) diff --git a/cli/tests/031_info_no_check.ts b/cli/tests/031_info_ts_error.ts similarity index 100% rename from cli/tests/031_info_no_check.ts rename to cli/tests/031_info_ts_error.ts diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs index 23c44ba892..3c2154dffe 100644 --- a/cli/tests/integration_tests.rs +++ b/cli/tests/integration_tests.rs @@ -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 {