]> granicus.if.org Git - graphviz/commitdiff
Add option -? for usage to diffimg
authorMagnus Jacobsson <magnus.jacobsson@berotec.se>
Sun, 20 Sep 2020 11:23:06 +0000 (13:23 +0200)
committerMagnus Jacobsson <magnus.jacobsson@berotec.se>
Fri, 2 Oct 2020 12:47:15 +0000 (14:47 +0200)
contrib/diffimg/diffimg.c

index 12a6cfe685f5bdf878fdd955888eac43d917d47d..ca9117911ea1b1d92c0e2d7b48d83b253a19cd8a 100644 (file)
@@ -164,6 +164,10 @@ int main(int argc, char **argv)
     FILE *f;
 #endif
 
+    if (argc == 2 && strcmp(argv[1], "-?") == 0) {
+        fprintf(stderr, "Usage: diffimg image1 image2 [outimage]\n");
+        exit(0);
+    }
     if (argc < 3) {
         fprintf(stderr, "Usage: diffimg image1 image2 [outimage]\n");
         exit(EX_USAGE);