From 033219abc137a5322e4c7b983aff2957b5df5483 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 24 Jan 2024 03:40:49 +1100 Subject: [PATCH] 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. --- cli/args/flags.rs | 9 --------- cli/tests/integration/run_tests.rs | 2 +- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 114cd4551e0cd0..707e282560c2ac 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -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") diff --git a/cli/tests/integration/run_tests.rs b/cli/tests/integration/run_tests.rs index 03aa8893f605f1..429ec2a04c5302 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -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");