run0: add -n/--non-interactive as alias to --no-ask-password

These are the flag names used by sudo with similar effect.
This commit is contained in:
Ronan Pigott
2026-06-04 13:36:17 -07:00
committed by Luca Boccassi
parent 2a48d18f20
commit e15fbf3349
4 changed files with 15 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ _run0() {
--setenv --background
)
local OPTS="${opts_with_values[*]} -h --help -V --version --no-ask-password --slice-inherit --empower"
OPTS="$OPTS -k --reset-timestamp -K --remove-timestamp -v --validate"
OPTS="$OPTS -k --reset-timestamp -K --remove-timestamp -v --validate -n --non-interactive"
local i
for (( i=1; i <= COMP_CWORD; i++ )); do