diff --git a/examples/cwebp.c b/examples/cwebp.c index 0fa83d1e..2d1f076d 100644 --- a/examples/cwebp.c +++ b/examples/cwebp.c @@ -895,6 +895,9 @@ int main(int argc, const char *argv[]) { #endif } else if (!strcmp(argv[c], "-v")) { verbose = 1; + } else if (!strcmp(argv[c], "--")) { + if (c < argc - 1) in_file = argv[++c]; + break; } else if (argv[c][0] == '-') { fprintf(stderr, "Error! Unknown option '%s'\n", argv[c]); HelpLong(); diff --git a/examples/dwebp.c b/examples/dwebp.c index 5a2c0b65..fca9c9a7 100644 --- a/examples/dwebp.c +++ b/examples/dwebp.c @@ -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(); diff --git a/examples/gif2webp.c b/examples/gif2webp.c index 6e8d79ee..6c7f4638 100644 --- a/examples/gif2webp.c +++ b/examples/gif2webp.c @@ -359,6 +359,9 @@ int main(int argc, const char *argv[]) { quiet = 1; } else if (!strcmp(argv[c], "-v")) { verbose = 1; + } else if (!strcmp(argv[c], "--")) { + if (c < argc - 1) in_file = argv[++c]; + break; } else if (argv[c][0] == '-') { fprintf(stderr, "Error! Unknown option '%s'\n", argv[c]); Help(); diff --git a/examples/vwebp.c b/examples/vwebp.c index da08135e..1679132c 100644 --- a/examples/vwebp.c +++ b/examples/vwebp.c @@ -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(); diff --git a/man/cwebp.1 b/man/cwebp.1 index 9ac40311..f2a9b8bb 100644 --- a/man/cwebp.1 +++ b/man/cwebp.1 @@ -1,5 +1,5 @@ .\" Hey, EMACS: -*- nroff -*- -.TH CWEBP 1 "October 23, 2013" +.TH CWEBP 1 "December 12, 2013" .SH NAME cwebp \- compress an image file to a WebP file .SH SYNOPSIS @@ -255,6 +255,8 @@ cwebp \-q 50 -lossless picture.png \-o picture_lossless.webp cwebp \-q 70 picture_with_alpha.png \-o picture_with_alpha.webp .br cwebp \-sns 70 \-f 50 \-size 60000 picture.png \-o picture.webp +.br +cwebp \-o picture.webp \-\- \-\-\-picture.png .SH AUTHORS \fBcwebp\fP was written by the WebP team. diff --git a/man/dwebp.1 b/man/dwebp.1 index ba735dbe..7b1f452e 100644 --- a/man/dwebp.1 +++ b/man/dwebp.1 @@ -1,5 +1,5 @@ .\" Hey, EMACS: -*- nroff -*- -.TH DWEBP 1 "November 26, 2013" +.TH DWEBP 1 "December 12, 2013" .SH NAME dwebp \- decompress a WebP file to an image file .SH SYNOPSIS @@ -99,6 +99,8 @@ http://www.webmproject.org/code/contribute/submitting-patches/ dwebp picture.webp \-o output.png .br dwebp picture.webp \-ppm \-o output.ppm +.br +dwebp \-o output.ppm \-\- \-\-\-picture.webp .SH AUTHORS \fBdwebp\fP was written by the WebP team. diff --git a/man/gif2webp.1 b/man/gif2webp.1 index 6fb79b7b..ded05e37 100644 --- a/man/gif2webp.1 +++ b/man/gif2webp.1 @@ -1,5 +1,5 @@ .\" Hey, EMACS: -*- nroff -*- -.TH GIF2WEBP 1 "November 18, 2013" +.TH GIF2WEBP 1 "December 12, 2013" .SH NAME gif2webp \- Convert a GIF image to WebP .SH SYNOPSIS @@ -119,6 +119,8 @@ gif2webp \-q 70 picture.gif \-o picture.webp gif2webp \-lossy \-m 3 picture.gif \-o picture_lossy.webp .br gif2webp \-lossy \-f 50 picture.gif \-o picture.webp +.br +gif2webp \-q 70 \-o picture.webp \-\- \-\-\-picture.gif .SH AUTHORS \fBgif2webp\fP was written by the WebP team.