comparison tools/lib64util.c @ 2373:f35ee6f8d994

Improve the help text in argShowC64PaletteHelp().
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 08 Jan 2020 12:29:35 +0200
parents d42dccc34964
children 89cb93184175
comparison
equal deleted inserted replaced
2372:d42dccc34964 2373:f35ee6f8d994
182 182
183 void argShowC64PaletteHelp(FILE *fh) 183 void argShowC64PaletteHelp(FILE *fh)
184 { 184 {
185 fprintf(fh, 185 fprintf(fh,
186 "\n" 186 "\n"
187 "Available C64 palettes (-p <name>):\n" 187 "Available internal C64 palettes (-p <name>):\n"
188 "-----------------------------------\n"); 188 "--------------------------------------------\n");
189 189
190 for (int n = 0; n < ndmC64DefaultPalettes; n++) 190 for (int n = 0; n < ndmC64DefaultPalettes; n++)
191 { 191 {
192 DMC64Palette *pal = &dmC64DefaultPalettes[n]; 192 DMC64Palette *pal = &dmC64DefaultPalettes[n];
193 fprintf(fh, 193 fprintf(fh,
195 pal->name, pal->desc); 195 pal->name, pal->desc);
196 } 196 }
197 197
198 fprintf(fh, 198 fprintf(fh,
199 "\n" 199 "\n"
200 "Instead one of the internal palettes, you can\n" 200 "Instead of using one of the internal palettes,\n"
201 "also specify an external palette file.\n" 201 "you can specify an external palette file.\n"
202 "\n"
202 "Supported palette file formats are:\n" 203 "Supported palette file formats are:\n"
203 "-----------------------------------\n" 204 "-----------------------------------\n"
204 ); 205 );
205 206
206 for (int n = 0; n < ndmPaletteFormatList; n++) 207 for (int n = 0; n < ndmPaletteFormatList; n++)
211 fprintf(fh, 212 fprintf(fh,
212 "%-6s | %s\n", 213 "%-6s | %s\n",
213 fmt->fext, fmt->name); 214 fmt->fext, fmt->name);
214 } 215 }
215 } 216 }
216 fprintf(fh, "\n"); 217 fprintf(fh,
218 "\n"
219 "Example: -p foobar.bin\n"
220 "\n");
217 } 221 }
218 222
219 223
220 BOOL argHandleC64PaletteOption(char *optArg, DMC64Palette **ppal, char **palFile) 224 BOOL argHandleC64PaletteOption(char *optArg, DMC64Palette **ppal, char **palFile)
221 { 225 {