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
@@ -801,6 +801,10 @@ static int parse_argv_sudo_mode(int argc, char *argv[]) {
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user