[PATCH 03/11] Made weston-nested --help work
Bill Spitzak
spitzak at gmail.com
Tue Jul 8 21:17:06 PDT 2014
---
clients/nested.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
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) {
--
1.7.9.5
More information about the wayland-devel
mailing list