changeset 983:98e749d990b0

Improve help.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 27 Feb 2015 18:06:23 +0200
parents 21aeff49d974
children 2fac0a28ff51
files tools/gfxconv.c
diffstat 1 files changed, 18 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Fri Feb 27 17:49:10 2015 +0200
+++ b/tools/gfxconv.c	Fri Feb 27 18:06:23 2015 +0200
@@ -152,23 +152,24 @@
 
 static const DMOptArg optList[] =
 {
-    {  0, '?', "help",         "Show this help", OPT_NONE },
-    { 15, 'v', "verbose",      "Increase verbosity", OPT_NONE },
-    {  3, 'o', "output",       "Output filename", OPT_ARGREQ },
-    {  1, 'i', "informat",     "Set input format (sprite[:mc:sc], char[:mc|sc], bitmap[:<bformat>], image)", OPT_ARGREQ },
-    {  2, 'm', "multicolor",   "Input is multicolor / output in multicolor", OPT_NONE },
-    {  4, 's', "skip",         "Skip bytes in input", OPT_ARGREQ },
-    {  5, 'f', "format",       "Output format (see --formats)", OPT_ARGREQ },
-    { 17,  0 , "formats",      "List available input/output formats", OPT_NONE },
-    {  8, 'q', "sequential",   "Output sequential files (image output only)", OPT_NONE },
-    {  6, 'c', "colormap",     "Color mappings (see below for information)", OPT_ARGREQ },
-    {  7, 'n', "numitems",     "How many 'items' to view (default: all)", OPT_ARGREQ },
-    {  9, 'S', "scale",        "Scale output by x (image output only)", OPT_ARGREQ },
-    { 11, 'w', "width",        "Item width (number of items per row, min 1)", OPT_ARGREQ },
-    { 12, 'P', "paletted",     "Use indexed/paletted output (png, pcx output only)", OPT_NONE },
-    { 13, 'B', "bplanes",      "Bits per pixel OR # of bitplanes (certain output formats)", OPT_ARGREQ },
-    { 14, 'I', "interleave",   "Interleave scanlines (default: output whole planes)", OPT_NONE },
-    { 16, 'R', "remap",        "Remap output image colors (-R <(#RRGGBB|index):index>[,<..>][+remove] | -R @map.txt[+remove])", OPT_ARGREQ },
+    {  0, '?', "help",          "Show this help", OPT_NONE },
+    { 15, 'v', "verbose",       "Increase verbosity", OPT_NONE },
+    {  3, 'o', "output",        "Output filename", OPT_ARGREQ },
+    {  1, 'i', "informat",      "Set input format (sprite[:mc:sc], char[:mc|sc], bitmap[:<bformat>], image)", OPT_ARGREQ },
+    {  2, 'm', "multicolor",    "Input is multicolor / output in multicolor", OPT_NONE },
+    {  4, 's', "skip",          "Skip bytes in input", OPT_ARGREQ },
+    {  5, 'f', "format",        "Output format (see --formats)", OPT_ARGREQ },
+    { 17,  0 , "formats",       "List available input/output formats", OPT_NONE },
+    {  8, 'q', "sequential",    "Output sequential files (image output only)", OPT_NONE },
+    {  6, 'c', "colormap",      "Color mappings (see below for information)", OPT_ARGREQ },
+    {  7, 'n', "numitems",      "How many 'items' to output (default: all)", OPT_ARGREQ },
+    { 11, 'w', "width",         "Item width (number of items per row, min 1)", OPT_ARGREQ },
+    {  9, 'S', "scale",         "Scale output image by <n> or <x>:<y> integer factor(s).\n"
+                                "-S <n> scales both height and width by <n>.", OPT_ARGREQ },
+    { 12, 'P', "paletted",      "Use indexed/paletted output (png, pcx output only)", OPT_NONE },
+    { 13, 'B', "bplanes",       "Bits per pixel OR # of bitplanes (certain output formats)", OPT_ARGREQ },
+    { 14, 'I', "interleave",    "Interleave output image scanlines (default: output whole planes)", OPT_NONE },
+    { 16, 'R', "remap",         "Remap output image colors (-R <(#RRGGBB|index):index>[,<..>][+remove] | -R @map.txt[+remove])", OPT_ARGREQ },
 };
 
 static const int optListN = sizeof(optList) / sizeof(optList[0]);