weston-image --help works. Also help if no filename is given
This commit is contained in:
committed by
Pekka Paalanen
parent
bb0bb9ce96
commit
a8292618a6
@@ -412,6 +412,11 @@ main(int argc, char *argv[])
|
|||||||
int i;
|
int i;
|
||||||
int image_counter = 0;
|
int image_counter = 0;
|
||||||
|
|
||||||
|
if (argc <= 1 || argv[1][0]=='-') {
|
||||||
|
printf("Usage: %s image...\n", argv[0]);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
d = display_create(&argc, argv);
|
d = display_create(&argc, argv);
|
||||||
if (d == NULL) {
|
if (d == NULL) {
|
||||||
fprintf(stderr, "failed to create display: %m\n");
|
fprintf(stderr, "failed to create display: %m\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user