3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-25 17:59:25 +01:00

client: Enable 'help', 'version' cmds in non-interactive mode

This commit is contained in:
Tim Kourt 2018-11-09 13:43:14 -08:00 committed by Denis Kenzior
parent 7df4f2e86b
commit 5afe4576a1

View File

@ -509,8 +509,14 @@ void command_process_prompt(char **argv, int argc)
return;
if (!interactive_mode) {
if (command_match_misc_commands(argv, argc)) {
exit_status = EXIT_SUCCESS;
goto quit;
}
display_error("Invalid command\n");
exit_status = EXIT_FAILURE;
quit:
l_main_quit();
return;
}