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:
committed by
Luca Boccassi
parent
2a48d18f20
commit
e15fbf3349
@@ -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
|
||||
|
||||
@@ -37,7 +37,7 @@ _run0_slices() {
|
||||
}
|
||||
|
||||
local -a args=(
|
||||
'--no-ask-password[Do not query the user for authentication]'
|
||||
'(-n --non-interactive --no-ask-password)'{-n,--non-interactive,--no-ask-password}'[Do not query the user for authentication]'
|
||||
'--unit=[Use this unit name instead of an automatically generated one]'
|
||||
{'*--property=','*-p+'}'[Sets a property on the service unit created]:property:_run0_unit_properties'
|
||||
'--description=[Provide a description for the service unit]:TEXT'
|
||||
|
||||
Reference in New Issue
Block a user