summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2014-08-08 12:59:52 -0700
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-08-19 12:19:16 +0300
commit6df71aae03696c7a60da4e827913b68bfbd6d890 (patch)
treeaa247fe119be5dd4fe6835b5f6588533a57014e7
parent4fb8491e1bc12c2da08ab1beeb6781ba5771c507 (diff)
downloadweston-6df71aae03696c7a60da4e827913b68bfbd6d890.tar.gz
weston-6df71aae03696c7a60da4e827913b68bfbd6d890.tar.bz2
weston-6df71aae03696c7a60da4e827913b68bfbd6d890.zip
Made weston-nested --help work
-rw-r--r--clients/nested.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/clients/nested.c b/clients/nested.c
index 2a952beb..f0942378 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) {