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:
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")
|
.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."
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue