diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2024-01-24 03:34:06 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 17:34:06 +0100 |
commit | b0febea47f9a9aba70adbbe089e11cb6f1a69145 (patch) | |
tree | 0fc4e089c015185e02525fc2582c21eee339c316 | |
parent | 137f1a0c6836b50292c53e15aa85bd56ad14a943 (diff) |
refactor: set removal version for `--ts`/`-T` flags (#22039)
Towards #22021
-rw-r--r-- | cli/args/flags.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 200e498c0..114cd4551 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -1561,7 +1561,7 @@ This command has implicit access to all permissions (--allow-all).", .conflicts_with("ext") .long("ts") .short('T') - .help("deprecated: Treat eval input as TypeScript") + .help("deprecated: Use `--ext=ts` instead. The `--ts` and `-T` flags are deprecated and will be removed in Deno 2.0.") .action(ArgAction::SetTrue) .hide(true), ) @@ -3411,9 +3411,9 @@ fn eval_parse(flags: &mut Flags, matches: &mut ArgMatches) { if as_typescript { eprintln!( - "{}", + "⚠️ {}", crate::colors::yellow( - "Warning: --ts/-T flag is deprecated. Use --ext=ts instead." + "Use `--ext=ts` instead. The `--ts` and `-T` flags are deprecated and will be removed in Deno 2.0." ), ); |