vwebp: let -- stop parameter parsing

this enables vwebp to accept input files starting with '-'

Change-Id: I8467bb719ba745b2aa14a5c5ce2ff392cd9601d5
This commit is contained in:
James Zern 2013-12-12 20:20:08 -08:00
parent 98af68fe26
commit a4b0aa06ee

View File

@ -425,6 +425,9 @@ int main(int argc, char *argv[]) {
return 0;
} else if (!strcmp(argv[c], "-mt")) {
config->options.use_threads = 1;
} else if (!strcmp(argv[c], "--")) {
if (c < argc - 1) kParams.file_name = argv[++c];
break;
} else if (argv[c][0] == '-') {
printf("Unknown option '%s'\n", argv[c]);
Help();