From 86e0ed70f19db450f99339f826fef90148330300 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Tue, 23 Jan 2024 10:20:41 +1100 Subject: [PATCH] chore: remove dead `--prompt` flag --- 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 46560b9baeae0b..dfcd121f1e6347 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -2721,15 +2721,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 3fd0133764a6d9..983916ebb79e63 100644 --- a/cli/tests/integration/run_tests.rs +++ b/cli/tests/integration/run_tests.rs @@ -2913,7 +2913,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");