netpbm/netpbm-ppmfadeusage.patch

15 lines
496 B
Diff
Raw Normal View History

diff --git a/editor/ppmfade b/editor/ppmfade
2016-07-28 11:21:21 +00:00
index 5091651..23b3ecc 100755
--- a/editor/ppmfade
+++ b/editor/ppmfade
2016-07-28 11:21:21 +00:00
@@ -113,6 +113,9 @@ for ($n = 0; $n < @ARGV; $n++) {
$mode = $BLOCK;
} elsif ("$ARGV[$n]" eq "-mix") {
$mode = $MIX;
+ } elsif ($ARGV[$n] eq "-help" || $ARGV[$n] eq "--help" || $ARGV[$n] eq "-h") {
+ print "ppmfade: Use 'man ppmfade' for help.\n";
+ exit 1;
} else {
print "Unknown argument: $ARGV[$n]\n";
2016-07-28 11:21:21 +00:00
exit 100;