comparison tools/gfxconv.c @ 983:98e749d990b0

Improve help.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 27 Feb 2015 18:06:23 +0200
parents 139b801f8d1c
children 5af2097ab284
comparison
equal deleted inserted replaced
982:21aeff49d974 983:98e749d990b0
150 .format = 0, 150 .format = 0,
151 }; 151 };
152 152
153 static const DMOptArg optList[] = 153 static const DMOptArg optList[] =
154 { 154 {
155 { 0, '?', "help", "Show this help", OPT_NONE }, 155 { 0, '?', "help", "Show this help", OPT_NONE },
156 { 15, 'v', "verbose", "Increase verbosity", OPT_NONE }, 156 { 15, 'v', "verbose", "Increase verbosity", OPT_NONE },
157 { 3, 'o', "output", "Output filename", OPT_ARGREQ }, 157 { 3, 'o', "output", "Output filename", OPT_ARGREQ },
158 { 1, 'i', "informat", "Set input format (sprite[:mc:sc], char[:mc|sc], bitmap[:<bformat>], image)", OPT_ARGREQ }, 158 { 1, 'i', "informat", "Set input format (sprite[:mc:sc], char[:mc|sc], bitmap[:<bformat>], image)", OPT_ARGREQ },
159 { 2, 'm', "multicolor", "Input is multicolor / output in multicolor", OPT_NONE }, 159 { 2, 'm', "multicolor", "Input is multicolor / output in multicolor", OPT_NONE },
160 { 4, 's', "skip", "Skip bytes in input", OPT_ARGREQ }, 160 { 4, 's', "skip", "Skip bytes in input", OPT_ARGREQ },
161 { 5, 'f', "format", "Output format (see --formats)", OPT_ARGREQ }, 161 { 5, 'f', "format", "Output format (see --formats)", OPT_ARGREQ },
162 { 17, 0 , "formats", "List available input/output formats", OPT_NONE }, 162 { 17, 0 , "formats", "List available input/output formats", OPT_NONE },
163 { 8, 'q', "sequential", "Output sequential files (image output only)", OPT_NONE }, 163 { 8, 'q', "sequential", "Output sequential files (image output only)", OPT_NONE },
164 { 6, 'c', "colormap", "Color mappings (see below for information)", OPT_ARGREQ }, 164 { 6, 'c', "colormap", "Color mappings (see below for information)", OPT_ARGREQ },
165 { 7, 'n', "numitems", "How many 'items' to view (default: all)", OPT_ARGREQ }, 165 { 7, 'n', "numitems", "How many 'items' to output (default: all)", OPT_ARGREQ },
166 { 9, 'S', "scale", "Scale output by x (image output only)", OPT_ARGREQ }, 166 { 11, 'w', "width", "Item width (number of items per row, min 1)", OPT_ARGREQ },
167 { 11, 'w', "width", "Item width (number of items per row, min 1)", OPT_ARGREQ }, 167 { 9, 'S', "scale", "Scale output image by <n> or <x>:<y> integer factor(s).\n"
168 { 12, 'P', "paletted", "Use indexed/paletted output (png, pcx output only)", OPT_NONE }, 168 "-S <n> scales both height and width by <n>.", OPT_ARGREQ },
169 { 13, 'B', "bplanes", "Bits per pixel OR # of bitplanes (certain output formats)", OPT_ARGREQ }, 169 { 12, 'P', "paletted", "Use indexed/paletted output (png, pcx output only)", OPT_NONE },
170 { 14, 'I', "interleave", "Interleave scanlines (default: output whole planes)", OPT_NONE }, 170 { 13, 'B', "bplanes", "Bits per pixel OR # of bitplanes (certain output formats)", OPT_ARGREQ },
171 { 16, 'R', "remap", "Remap output image colors (-R <(#RRGGBB|index):index>[,<..>][+remove] | -R @map.txt[+remove])", OPT_ARGREQ }, 171 { 14, 'I', "interleave", "Interleave output image scanlines (default: output whole planes)", OPT_NONE },
172 { 16, 'R', "remap", "Remap output image colors (-R <(#RRGGBB|index):index>[,<..>][+remove] | -R @map.txt[+remove])", OPT_ARGREQ },
172 }; 173 };
173 174
174 static const int optListN = sizeof(optList) / sizeof(optList[0]); 175 static const int optListN = sizeof(optList) / sizeof(optList[0]);
175 176
176 177