From: Bill Spitzak Date: Fri, 8 Aug 2014 19:59:52 +0000 (-0700) Subject: Made weston-nested --help work X-Git-Tag: 1.5.91~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6df71aae03696c7a60da4e827913b68bfbd6d890;p=platform%2Fupstream%2Fweston.git Made weston-nested --help work --- diff --git a/clients/nested.c b/clients/nested.c index 2a952be..f094237 100644 --- a/clients/nested.c +++ b/clients/nested.c @@ -1115,8 +1115,11 @@ main(int argc, char *argv[]) struct display *display; struct nested *nested; - parse_options(nested_options, - ARRAY_LENGTH(nested_options), &argc, argv); + if (parse_options(nested_options, + ARRAY_LENGTH(nested_options), &argc, argv) > 1) { + printf("Usage: %s [OPTIONS]\n --blit or -b\n", argv[0]); + exit(1); + } display = display_create(&argc, argv); if (display == NULL) {