a512e57
diff -urNp old/editor/ppmfade new/editor/ppmfade
a512e57
--- old/editor/ppmfade	2017-11-01 11:47:49.869611402 +0100
a512e57
+++ new/editor/ppmfade	2017-11-01 11:53:25.524973342 +0100
a512e57
@@ -84,7 +84,7 @@ for ($n = 0; $n < @ARGV; $n++) {
a512e57
         if (-e $first_file) {
a512e57
         } else {
a512e57
             print "I can't find first file '$first_file'\n";
a512e57
-            exit 20;
a512e57
+            exit 1;
a512e57
         }
a512e57
     } elsif ($ARGV[$n] eq "-l") {
a512e57
         $n++;
a512e57
@@ -92,7 +92,7 @@ for ($n = 0; $n < @ARGV; $n++) {
a512e57
         if (-e $last_file) {
a512e57
         } else {
a512e57
             print "I can't find last file '$last_file'\n";
a512e57
-            exit 20;
a512e57
+            exit 1;
a512e57
         }
a512e57
     } elsif ($ARGV[$n] eq "-base") {
a512e57
         $n++;
a512e57
@@ -113,9 +113,12 @@ for ($n = 0; $n < @ARGV; $n++) {
aaf502c
         $mode = $BLOCK;
aaf502c
     } elsif ("$ARGV[$n]" eq "-mix") {
aaf502c
         $mode = $MIX;
aaf502c
+    } elsif ($ARGV[$n] eq "-help" || $ARGV[$n] eq "--help" || $ARGV[$n] eq "-h") {
aaf502c
+        print "ppmfade: Use 'man ppmfade' for help.\n";
aaf502c
+        exit 1;
cdf6099
     } else {
cdf6099
         print "Unknown argument: $ARGV[$n]\n";
a512e57
-        exit 100;
a512e57
+        exit 1;
a512e57
     } 
a512e57
 }
a512e57
 #
a512e57
@@ -134,18 +137,18 @@ if ($first_file ne "undefined") {
a512e57
         $width = $1; $height = $2;
a512e57
     } else {
a512e57
         print("Unrecognized results from pnmfile on $first_file.\n");
a512e57
-        exit(50);
a512e57
+        exit 1;
a512e57
     }
a512e57
 } elsif ($last_file ne "undefined") {
a512e57
     if ((`pnmfile $last_file` =~ m{\b(\d+)\sby\s(\d+)} )) { 
a512e57
         $width = $1; $height = $2;
a512e57
     } else {
a512e57
         print("Unrecognized results from pnmfile on $first_file.\n");
a512e57
-        exit(50);
a512e57
+        exit 1;
a512e57
     }
a512e57
 } else {
a512e57
     print("ppmfade:  You must specify -f or -l (or both)\n");
a512e57
-    exit(90);
a512e57
+    exit 1;
a512e57
 }
a512e57
 
a512e57
 print("Frames are " . $width . "W x " . $height . "H\n");