Made weston-subsurfaces --help work
authorBill Spitzak <spitzak@gmail.com>
Fri, 8 Aug 2014 19:59:53 +0000 (12:59 -0700)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 19 Aug 2014 09:19:17 +0000 (12:19 +0300)
clients/subsurfaces.c

index 66a10f2..833030f 100644 (file)
@@ -775,8 +775,8 @@ main(int argc, char *argv[])
        struct display *display;
        struct demoapp *app;
 
-       parse_options(options, ARRAY_LENGTH(options), &argc, argv);
-       if (option_help) {
+       if (parse_options(options, ARRAY_LENGTH(options), &argc, argv) > 1
+           || option_help) {
                printf(help_text, argv[0]);
                return 0;
        }