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