Made weston-subsurfaces --help work

This commit is contained in:
Bill Spitzak 2014-08-08 12:59:53 -07:00 committed by Pekka Paalanen
parent 6df71aae03
commit 852254a7c7

View 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;
}