These are the flag names used by sudo with similar effect.
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>-n</option></term>
+ <term><option>--non-interactive</option></term>
+
+ <listitem><para>Equivalent to <option>--no-ask-password</option>.</para>
+
+ <xi:include href="version-info.xml" xpointer="v262"/></listitem>
+ </varlistentry>
+
<xi:include href="standard-options.xml" xpointer="no-ask-password" />
<xi:include href="standard-options.xml" xpointer="help" />
<xi:include href="standard-options.xml" xpointer="version" />
--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
}
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'
arg_ask_password = false;
break;
+ OPTION('n', "non-interactive", NULL, "Do not prompt for password"):
+ arg_ask_password = false;
+ break;
+
OPTION_LONG("machine", "CONTAINER", "Operate on local container"):
r = parse_machine_argument(opts.arg, &arg_host, &arg_transport);
if (r < 0)