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/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.