mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-20 07:00:09 +01:00
weston-launch: Handle invalid command line options
Exit the program if an unrecognized command line option is found. Signed-off-by; Tom Hochstein <tom.hochstein@nxp.com> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Reviewed-by: Yong Bakos <ybakos@humanoriented.com> Tested-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
This commit is contained in:
parent
e196c89d8d
commit
fc3dd183ed
1 changed files with 2 additions and 0 deletions
|
|
@ -703,6 +703,8 @@ main(int argc, char *argv[])
|
||||||
case 'h':
|
case 'h':
|
||||||
help("weston-launch");
|
help("weston-launch");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
default:
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue