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:
parent
6d31c9313f
commit
1c7344fdf6
@ -55,6 +55,10 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
interactive = command_init(argv, argc);
|
interactive = command_init(argv, argc);
|
||||||
|
|
||||||
|
exit_status = command_get_exit_status();
|
||||||
|
if (exit_status)
|
||||||
|
goto done;
|
||||||
|
|
||||||
if (interactive)
|
if (interactive)
|
||||||
display_init();
|
display_init();
|
||||||
|
|
||||||
@ -68,6 +72,7 @@ int main(int argc, char *argv[])
|
|||||||
display_exit();
|
display_exit();
|
||||||
|
|
||||||
exit_status = command_get_exit_status();
|
exit_status = command_get_exit_status();
|
||||||
|
done:
|
||||||
command_exit();
|
command_exit();
|
||||||
|
|
||||||
l_main_exit();
|
l_main_exit();
|
||||||
|
Loading…
Reference in New Issue
Block a user