diff --git a/tools/ras2tiff.c b/tools/ras2tiff.c index 8bd9ac17..1f140d98 100644 --- a/tools/ras2tiff.c +++ b/tools/ras2tiff.c @@ -1,4 +1,4 @@ -/* $Header: /cvs/maptools/cvsroot/libtiff/tools/Attic/ras2tiff.c,v 1.3 1999-12-27 17:35:01 mwelles Exp $ */ +/* $Header: /cvs/maptools/cvsroot/libtiff/tools/Attic/ras2tiff.c,v 1.4 2002-06-27 13:07:46 dron Exp $ */ /* * Copyright (c) 1988-1997 Sam Leffler @@ -66,7 +66,7 @@ main(int argc, char* argv[]) extern int optind; extern char* optarg; - while ((c = getopt(argc, argv, "c:r:")) != -1) + while ((c = getopt(argc, argv, "c:r:h")) != -1) switch (c) { case 'c': /* compression scheme */ if (!processCompressOptions(optarg)) @@ -75,7 +75,7 @@ main(int argc, char* argv[]) case 'r': /* rows/strip */ rowsperstrip = atoi(optarg); break; - case '?': + case 'h': usage(); /*NOTREACHED*/ } @@ -238,7 +238,7 @@ char* stuff[] = { " -c lzw[:opts] compress output with Lempel-Ziv & Welch encoding", " (no longer supported by default due to Unisys patent enforcement)", " -c zip[:opts] compress output with deflate encoding", -" -c jpeg[:opts]compress output with JPEG encoding", +" -c jpeg[:opts] compress output with JPEG encoding", " -c packbits compress output with packbits encoding", " -c none use no compression algorithm on output", "", @@ -250,6 +250,7 @@ char* stuff[] = { "LZW and deflate options:", " # set predictor value", "For example, -c lzw:2 to get LZW-encoded data with horizontal differencing", +" -h this help message", NULL };