3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-22 13:02:44 +01:00

client: Check status of the command-line option parsing

Check status of the command-line option parsing and quit on error.
This commit is contained in:
Tim Kourt 2019-08-15 11:40:39 -07:00 committed by Denis Kenzior
parent 6d31c9313f
commit 1c7344fdf6

View File

@ -55,6 +55,10 @@ int main(int argc, char *argv[])
interactive = command_init(argv, argc);
exit_status = command_get_exit_status();
if (exit_status)
goto done;
if (interactive)
display_init();
@ -68,6 +72,7 @@ int main(int argc, char *argv[])
display_exit();
exit_status = command_get_exit_status();
done:
command_exit();
l_main_exit();