refactor: set removal version for --ts/-T flags (#22039)

Towards #22021
This commit is contained in:
Asher Gomez 2024-01-24 03:34:06 +11:00 committed by GitHub
parent 137f1a0c68
commit b0febea47f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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."
),
);