diff options
author | Tom Hochstein <tom.hochstein@nxp.com> | 2016-05-07 08:57:40 -0300 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2016-09-15 14:55:02 -0700 |
commit | fc3dd183ed757e003d16b98f3842ebcb2a982214 (patch) | |
tree | be9cdef2312858b479bb62adf0bc24cb2543f83c | |
parent | e196c89d8d68f9dfe041ae0930eff0de53adaf80 (diff) |
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>
-rw-r--r-- | src/weston-launch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/weston-launch.c b/src/weston-launch.c index b8dfb17a..9987d8ee 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); } } |