projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fb8491
)
Made weston-nested --help work
author
Bill Spitzak
<spitzak@gmail.com>
Fri, 8 Aug 2014 19:59:52 +0000
(12:59 -0700)
committer
Pekka Paalanen
<pekka.paalanen@collabora.co.uk>
Tue, 19 Aug 2014 09:19:16 +0000
(12:19 +0300)
clients/nested.c
patch
|
blob
|
history
diff --git
a/clients/nested.c
b/clients/nested.c
index
2a952be
..
f094237
100644
(file)
--- 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) {