1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-21 23:04:45 -05:00

fix(BREAKING): remove dead --prompt flag (#22038)

It appears the `--prompt` flag has done nothing for some time. Perhaps,
since #13650. Classifying this as a dead functionality removal for this
reason.

Did this while working on #22021.
This commit is contained in:
Asher Gomez 2024-01-24 03:40:49 +11:00 committed by GitHub
parent 18a235e608
commit d1eed9896f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 10 deletions

View file

@ -2728,15 +2728,6 @@ fn permission_args(app: Command) -> Command {
.action(ArgAction::SetTrue)
.help(ALLOW_ALL_HELP),
)
.arg(
Arg::new("prompt")
.long("prompt")
.action(ArgAction::SetTrue)
.hide(true)
.help(
"deprecated: Fallback to prompt if required permission wasn't passed",
),
)
.arg(
Arg::new("no-prompt")
.long("no-prompt")

View file

@ -3060,7 +3060,7 @@ itest!(byte_order_mark {
fn issue9750() {
TestContext::default()
.new_command()
.args_vec(["run", "--prompt", "run/issue9750.js"])
.args_vec(["run", "run/issue9750.js"])
.with_pty(|mut console| {
console.expect("Enter 'yy':");
console.write_line_raw("yy");