mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 07:14:47 -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:
parent
18a235e608
commit
d1eed9896f
2 changed files with 1 additions and 10 deletions
|
@ -2728,15 +2728,6 @@ fn permission_args(app: Command) -> Command {
|
||||||
.action(ArgAction::SetTrue)
|
.action(ArgAction::SetTrue)
|
||||||
.help(ALLOW_ALL_HELP),
|
.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(
|
||||||
Arg::new("no-prompt")
|
Arg::new("no-prompt")
|
||||||
.long("no-prompt")
|
.long("no-prompt")
|
||||||
|
|
|
@ -3060,7 +3060,7 @@ itest!(byte_order_mark {
|
||||||
fn issue9750() {
|
fn issue9750() {
|
||||||
TestContext::default()
|
TestContext::default()
|
||||||
.new_command()
|
.new_command()
|
||||||
.args_vec(["run", "--prompt", "run/issue9750.js"])
|
.args_vec(["run", "run/issue9750.js"])
|
||||||
.with_pty(|mut console| {
|
.with_pty(|mut console| {
|
||||||
console.expect("Enter 'yy':");
|
console.expect("Enter 'yy':");
|
||||||
console.write_line_raw("yy");
|
console.write_line_raw("yy");
|
||||||
|
|
Loading…
Reference in a new issue