cosmetic
This commit is contained in:
parent
56073c0c80
commit
a02b725ae0
@ -60,7 +60,7 @@ return 0;
|
|||||||
void help(int k)
|
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("options:");
|
||||||
puts("\t-g\tconvert to gray");
|
puts("\t-g\tconvert to gray");
|
||||||
puts("\t-v\tincrease verbosity");
|
puts("\t-v\tincrease verbosity");
|
||||||
|
@ -69,7 +69,7 @@ for (type = types; type->code; type++) {
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
static void help(void)
|
static void help(char *texte)
|
||||||
{
|
{
|
||||||
int foo, cc;
|
int foo, cc;
|
||||||
|
|
||||||
@ -89,7 +89,7 @@ puts("\n\t-v\tincrease verbosity");
|
|||||||
|
|
||||||
if (verbosity) {
|
if (verbosity) {
|
||||||
fimg_print_version(1);
|
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);
|
exit(0);
|
||||||
@ -110,7 +110,7 @@ FimgMetaData metadata;
|
|||||||
|
|
||||||
while ((opt = getopt(argc, argv, "hk:Lmt:v")) != -1) {
|
while ((opt = getopt(argc, argv, "hk:Lmt:v")) != -1) {
|
||||||
switch(opt) {
|
switch(opt) {
|
||||||
case 'h': help(); break;
|
case 'h': help(argv[0]); break;
|
||||||
case 'k': fvalue = atof(optarg); break;
|
case 'k': fvalue = atof(optarg); break;
|
||||||
case 'm': wrmdata = 1; break;
|
case 'm': wrmdata = 1; break;
|
||||||
case 't': type = get_type_by_name(tname=optarg);
|
case 't': type = get_type_by_name(tname=optarg);
|
||||||
|
Loading…
Reference in New Issue
Block a user