From b0febea47f9a9aba70adbbe089e11cb6f1a69145 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 24 Jan 2024 03:34:06 +1100 Subject: [PATCH] refactor: set removal version for `--ts`/`-T` flags (#22039) Towards #22021 --- cli/args/flags.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 200e498c0d..114cd4551e 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." ), );