mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-09-18 23:21:19 +00:00
weston-image --help works. Also help if no filename is given
This commit is contained in:
parent
bb0bb9ce96
commit
a8292618a6
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue