diff options
author | Geert-Jan Zwiers <geertjanzwiers@protonmail.com> | 2022-06-18 18:11:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-18 18:11:15 +0200 |
commit | fa7cad06de648a7e35995b9a366ae2cee3b3bc4f (patch) | |
tree | 1a6db2ebda68eaa19c85ead654a39bc5c476751d /cli/flags.rs | |
parent | 96821057dc0e81537c4fb2a93b092ebbef4ac92c (diff) |
fix(docs): update description of `--check` flag (#14890)
Diffstat (limited to 'cli/flags.rs')
-rw-r--r-- | cli/flags.rs | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/cli/flags.rs b/cli/flags.rs index c32398da8..d7123409e 100644 --- a/cli/flags.rs +++ b/cli/flags.rs @@ -234,12 +234,12 @@ impl Default for DenoSubcommand { #[derive(Debug, Clone, PartialEq)] pub enum TypeCheckMode { - /// Type check all modules. + /// Type-check all modules. All, - /// Skip type checking of all modules. The default value for "deno run" and + /// Skip type-checking of all modules. The default value for "deno run" and /// several other subcommands. None, - /// Only type check local modules. The default value for "deno test" and + /// Only type-check local modules. The default value for "deno test" and /// several other subcommands. Local, } @@ -1486,7 +1486,7 @@ fn test_subcommand<'a>() -> Command<'a> { .arg( Arg::new("doc") .long("doc") - .help("UNSTABLE: type check code blocks") + .help("UNSTABLE: type-check code blocks") .takes_value(false), ) .arg( @@ -2023,7 +2023,7 @@ fn no_check_arg<'a>() -> Arg<'a> { .min_values(0) .value_name("NO_CHECK_TYPE") .long("no-check") - .help("Skip type checking modules") + .help("Skip type-checking modules") .long_help( "Skip type-checking. If the value of '--no-check=remote' is supplied, \ diagnostic errors from remote modules will be ignored.", @@ -2038,11 +2038,12 @@ fn check_arg<'a>() -> Arg<'a> { .require_equals(true) .min_values(0) .value_name("CHECK_TYPE") - .help("Type check modules") + .help("Type-check modules") .long_help( - "Type check modules. -Currently this is a default behavior to type check modules, but in future releases -Deno will not automatically type check without the --check flag. + "Type-check modules. + +Deno does not type-check modules automatically from v1.23 onwards. Pass this \ +flag to enable type-checking or use the 'deno check' subcommand. If the value of '--check=all' is supplied, diagnostic errors from remote modules will be included.", |