From fc3dd183ed757e003d16b98f3842ebcb2a982214 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Sat, 7 May 2016 08:57:40 -0300 Subject: [PATCH] weston-launch: Handle invalid command line options Exit the program if an unrecognized command line option is found. Signed-off-by; Tom Hochstein Signed-off-by: Otavio Salvador Reviewed-by: Yong Bakos Tested-by: Yong Bakos Reviewed-by: Bryce Harrington --- src/weston-launch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/weston-launch.c b/src/weston-launch.c index b8dfb17a4..9987d8eea 100644 --- a/src/weston-launch.c +++ b/src/weston-launch.c @@ -703,6 +703,8 @@ main(int argc, char *argv[]) case 'h': help("weston-launch"); exit(EXIT_FAILURE); + default: + exit(EXIT_FAILURE); } }