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