comparison gfxconv.c @ 432:b583a682f12d

Improve listing of input/output formats in --help.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 03 Nov 2012 13:37:09 +0200
parents e3ebcbc4ace2
children e4a3f183e463
comparison
equal deleted inserted replaced
431:e3ebcbc4ace2 432:b583a682f12d
160 int i; 160 int i;
161 161
162 dmPrintBanner(stdout, dmProgName, "[options] <input file>"); 162 dmPrintBanner(stdout, dmProgName, "[options] <input file>");
163 dmArgsPrintHelp(stdout, optList, optListN); 163 dmArgsPrintHelp(stdout, optList, optListN);
164 164
165 printf("\nAvailable output formats:\n"); 165 printf("\n"
166 "Available input/output formats:\n"
167 " EXT | I | O | Description\n"
168 "------+---+---+--------------------------------\n"
169 );
170
166 for (i = 0; i < nconvFormatList; i++) 171 for (i = 0; i < nconvFormatList; i++)
167 { 172 {
168 DMConvFormat *fmt = &convFormatList[i]; 173 DMConvFormat *fmt = &convFormatList[i];
169 printf("%3d | %-5s | %s\n", 174 printf("%-5s | %c | %c | %s\n",
170 i, fmt->fext ? fmt->fext : "", fmt->name); 175 fmt->fext ? fmt->fext : "",
176 fmt->in ? 'X' : ' ',
177 fmt->out ? 'X' : ' ',
178 fmt->name);
171 } 179 }
172 180
173 printf("\nAvailable bitmap formats:\n"); 181 printf("\nAvailable bitmap formats:\n");
174 for (i = 0; i < ndmC64ImageFormats; i++) 182 for (i = 0; i < ndmC64ImageFormats; i++)
175 { 183 {