mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-13 06:24:27 +02:00
dwebp: let -- stop parameter parsing
this enables dwebp to accept input files starting with '-' Change-Id: I1e2c9c7bc2963d77be039c99e72f744560f0b0a2
This commit is contained in:
@ -649,6 +649,9 @@ int main(int argc, const char *argv[]) {
|
||||
#endif
|
||||
} else if (!strcmp(argv[c], "-incremental")) {
|
||||
incremental = 1;
|
||||
} else if (!strcmp(argv[c], "--")) {
|
||||
if (c < argc - 1) in_file = argv[++c];
|
||||
break;
|
||||
} else if (argv[c][0] == '-') {
|
||||
fprintf(stderr, "Unknown option '%s'\n", argv[c]);
|
||||
Help();
|
||||
|
Reference in New Issue
Block a user