mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
dwebp: let -- stop parameter parsing
this enables dwebp to accept input files starting with '-' Change-Id: I1e2c9c7bc2963d77be039c99e72f744560f0b0a2
This commit is contained in:
parent
f91034f241
commit
a33831e21a
@ -649,6 +649,9 @@ int main(int argc, const char *argv[]) {
|
|||||||
#endif
|
#endif
|
||||||
} else if (!strcmp(argv[c], "-incremental")) {
|
} else if (!strcmp(argv[c], "-incremental")) {
|
||||||
incremental = 1;
|
incremental = 1;
|
||||||
|
} else if (!strcmp(argv[c], "--")) {
|
||||||
|
if (c < argc - 1) in_file = argv[++c];
|
||||||
|
break;
|
||||||
} else if (argv[c][0] == '-') {
|
} else if (argv[c][0] == '-') {
|
||||||
fprintf(stderr, "Unknown option '%s'\n", argv[c]);
|
fprintf(stderr, "Unknown option '%s'\n", argv[c]);
|
||||||
Help();
|
Help();
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
.\" Hey, EMACS: -*- nroff -*-
|
.\" Hey, EMACS: -*- nroff -*-
|
||||||
.TH DWEBP 1 "November 26, 2013"
|
.TH DWEBP 1 "December 12, 2013"
|
||||||
.SH NAME
|
.SH NAME
|
||||||
dwebp \- decompress a WebP file to an image file
|
dwebp \- decompress a WebP file to an image file
|
||||||
.SH SYNOPSIS
|
.SH SYNOPSIS
|
||||||
@ -99,6 +99,8 @@ http://www.webmproject.org/code/contribute/submitting-patches/
|
|||||||
dwebp picture.webp \-o output.png
|
dwebp picture.webp \-o output.png
|
||||||
.br
|
.br
|
||||||
dwebp picture.webp \-ppm \-o output.ppm
|
dwebp picture.webp \-ppm \-o output.ppm
|
||||||
|
.br
|
||||||
|
dwebp \-o output.ppm \-\- \-\-\-picture.webp
|
||||||
|
|
||||||
.SH AUTHORS
|
.SH AUTHORS
|
||||||
\fBdwebp\fP was written by the WebP team.
|
\fBdwebp\fP was written by the WebP team.
|
||||||
|
Loading…
Reference in New Issue
Block a user