weston-image --help works. Also help if no filename is given

This commit is contained in:
Bill Spitzak 2014-08-08 12:59:59 -07:00 committed by Pekka Paalanen
parent bb0bb9ce96
commit a8292618a6

View file

@ -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");