[PATCH 04/12] Made weston-subsurfaces --help work

Bill Spitzak spitzak at gmail.com
Fri Aug 8 12:59:53 PDT 2014


---
 clients/subsurfaces.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clients/subsurfaces.c b/clients/subsurfaces.c
index 66a10f2..833030f 100644
--- a/clients/subsurfaces.c
+++ b/clients/subsurfaces.c
@@ -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;
 	}
-- 
1.7.9.5



More information about the wayland-devel mailing list