summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>2014-08-08 12:59:59 -0700
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>2014-08-19 12:21:44 +0300
commita8292618a64eace370457dab65a3d1348c1210d0 (patch)
treee5391cbf8d97aadfca2867761e0a6cca476bef02 /clients
parentbb0bb9ce9684a979ea4ccc579a9f0dccf22c745f (diff)
downloadweston-a8292618a64eace370457dab65a3d1348c1210d0.tar.gz
weston-a8292618a64eace370457dab65a3d1348c1210d0.tar.bz2
weston-a8292618a64eace370457dab65a3d1348c1210d0.zip
weston-image --help works. Also help if no filename is given
Diffstat (limited to 'clients')
-rw-r--r--clients/image.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clients/image.c b/clients/image.c
index 112b93d9..573117ca 100644
--- 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");