<xi:include href="version-info.xml" xpointer="v257"/></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" />
</variablelist>
static bool arg_reboot = false;
static bool arg_offline = false;
static bool arg_now = false;
+static bool arg_ask_password = true;
static BusTransport arg_transport = BUS_TRANSPORT_LOCAL;
static const char *arg_host = NULL;
OPTION_GROUP("Verbs"): {}
+ OPTION_COMMON_NO_ASK_PASSWORD:
+ arg_ask_password = false;
+ break;
+
OPTION_COMMON_HELP:
return help();
if (arg_transport == BUS_TRANSPORT_LOCAL)
polkit_agent_open();
- (void) sd_bus_set_allow_interactive_authorization(bus, true);
+ (void) sd_bus_set_allow_interactive_authorization(bus, arg_ask_password);
return dispatch_verb(args, bus);
}