Skip to content

Commit

Permalink
refactor: set removal version for --ts/-T flags (denoland#22039)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua authored and bartlomieju committed Jan 23, 2024
1 parent a3626d8 commit 53324fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/args/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down Expand Up @@ -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."
),
);

Expand Down

0 comments on commit 53324fe

Please sign in to comment.