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:
bb0bb9c
)
weston-image --help works. Also help if no filename is given
author
Bill Spitzak
<spitzak@gmail.com>
Fri, 8 Aug 2014 19:59:59 +0000
(12:59 -0700)
committer
Pekka Paalanen
<pekka.paalanen@collabora.co.uk>
Tue, 19 Aug 2014 09:21:44 +0000
(12:21 +0300)
clients/image.c
patch
|
blob
|
history
diff --git
a/clients/image.c
b/clients/image.c
index
112b93d
..
573117c
100644
(file)
--- a/
clients/image.c
+++ b/
clients/image.c
@@
-412,6
+412,11
@@
main(int argc, char *argv[])
int i;
int image_counter = 0;
+ if (argc <= 1 || argv[1][0]=='-') {
+ printf("Usage: %s image...\n", argv[0]);
+ return 1;
+ }
+
d = display_create(&argc, argv);
if (d == NULL) {
fprintf(stderr, "failed to create display: %m\n");