1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-18 11:53:59 -05:00

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") .conflicts_with("ext")
.long("ts") .long("ts")
.short('T') .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) .action(ArgAction::SetTrue)
.hide(true), .hide(true),
) )
@ -3411,9 +3411,9 @@ fn eval_parse(flags: &mut Flags, matches: &mut ArgMatches) {
if as_typescript { if as_typescript {
eprintln!( eprintln!(
"{}", "⚠️ {}",
crate::colors::yellow( 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."
), ),
); );