mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 10:25:46 +01:00 
			
		
		
		
	vwebp: let -- stop parameter parsing
this enables vwebp to accept input files starting with '-' Change-Id: I8467bb719ba745b2aa14a5c5ce2ff392cd9601d5
This commit is contained in:
		| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user