mirror of
https://github.com/denoland/deno.git
synced 2024-12-31 11:34:15 -05:00
refactor: set removal version for --ts
/-T
flags (#22039)
Towards #22021
This commit is contained in:
parent
137f1a0c68
commit
b0febea47f
1 changed files with 3 additions and 3 deletions
|
@ -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."
|
||||
),
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in a new issue