This commit is contained in:
tTh 2022-10-27 21:32:02 +02:00
parent 56073c0c80
commit a02b725ae0
2 changed files with 4 additions and 4 deletions

View File

@ -60,7 +60,7 @@ return 0;
void help(int k)
{
puts("usage:\n\tfimg2png [options] foo.fimg bar.png");
puts("usage:\n\tfimg2png [options] from.fimg to.png");
puts("options:");
puts("\t-g\tconvert to gray");
puts("\t-v\tincrease verbosity");

View File

@ -69,7 +69,7 @@ for (type = types; type->code; type++) {
exit(0);
}
/* --------------------------------------------------------------------- */
static void help(void)
static void help(char *texte)
{
int foo, cc;
@ -89,7 +89,7 @@ puts("\n\t-v\tincrease verbosity");
if (verbosity) {
fimg_print_version(1);
printf("*** compiled on the %s, at %s\n", __DATE__, __TIME__);
printf("*** %s compiled %s, %s\n", texte, __DATE__, __TIME__);
}
exit(0);
@ -110,7 +110,7 @@ FimgMetaData metadata;
while ((opt = getopt(argc, argv, "hk:Lmt:v")) != -1) {
switch(opt) {
case 'h': help(); break;
case 'h': help(argv[0]); break;
case 'k': fvalue = atof(optarg); break;
case 'm': wrmdata = 1; break;
case 't': type = get_type_by_name(tname=optarg);