Skip to content

Commit a08819c

Browse files
committed
gpujpegtool: no opt arg for shortopt 'i' and 'g'
It is questionable whether even the long opt requires the argument (those are flags) but definitely it is very impractical in short version (eg. `-iNg` is not equivalent to `-i -N -g` but to --interleaved=Ng).
1 parent 3b3db8b commit a08819c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ main(int argc, char *argv[])
300300
int ch = '\0';
301301
int optindex = 0;
302302
char* pos = 0;
303-
while ( (ch = getopt_long(argc, argv, "CLRahvD:s:f:c:q:r:g::i::edn:oI:NS::V", longopts, &optindex)) != -1 ) {
303+
while ( (ch = getopt_long(argc, argv, "CLRahvD:s:f:c:q:r:giedn:oI:NS::V", longopts, &optindex)) != -1 ) {
304304
switch (ch) {
305305
case 'a':
306306
opts.keep_alpha = true;

0 commit comments

Comments
 (0)