]> git.draconx.ca Git - liblbx.git/blobdiff - src/lbximg.c
lbximg: Allow --identify as a long option.
[liblbx.git] / src / lbximg.c
index ca618ca20b88dac70204f9f61c9006c95f19e339..0a0057a9fedf038846587c33a591bf8ba05f8853 100644 (file)
@@ -332,7 +332,7 @@ int main(int argc, char **argv)
 
        static const char sopts[] = "idnvF:f:p:O:VH";
        static const struct option lopts[] = {
-               { "ident",      0, NULL, 'i' },
+               { "identify",   0, NULL, 'i' },
                { "decode",     0, NULL, 'd' },
                { "verbose",    0, NULL, 'v' },
                { "file",       1, NULL, 'f' },
@@ -433,6 +433,9 @@ int main(int argc, char **argv)
        }
 
        switch (mode) {
+       case MODE_IDENT:
+               rc = 0;
+               break;
        case MODE_DECODE:
                rc = decode(img, palf, overf, fmt, &argv[optind]);
                break;