forked from tTh/FloatImg
enhance fimgmetadata -h
This commit is contained in:
parent
2c14368cd5
commit
5d139312e2
@ -57,6 +57,22 @@ for (n=0, cmd=Cmd_list; cmd->name; cmd++, n++) {
|
|||||||
return -1; /* NOT FOUND */
|
return -1; /* NOT FOUND */
|
||||||
}
|
}
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
void list_commands(void)
|
||||||
|
{
|
||||||
|
Cmd *cmd;
|
||||||
|
int n;
|
||||||
|
|
||||||
|
fputs("Commands:", stderr);
|
||||||
|
for (n=0, cmd=Cmd_list; cmd->name; cmd++) {
|
||||||
|
n += fprintf(stderr, " %s", cmd->name);
|
||||||
|
if (n > 40) {
|
||||||
|
fputs("\n ", stderr);
|
||||||
|
n = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fputs("\n", stderr);
|
||||||
|
}
|
||||||
|
/* --------------------------------------------------------------------- */
|
||||||
int get_print_metadata(char *fname, char *command)
|
int get_print_metadata(char *fname, char *command)
|
||||||
{
|
{
|
||||||
int foo, action;
|
int foo, action;
|
||||||
@ -101,6 +117,7 @@ void help(void)
|
|||||||
{
|
{
|
||||||
fprintf(stderr, "*** Fimg Metadata Reader (%s, %s)\n", __DATE__, __TIME__);
|
fprintf(stderr, "*** Fimg Metadata Reader (%s, %s)\n", __DATE__, __TIME__);
|
||||||
fimg_print_version(1);
|
fimg_print_version(1);
|
||||||
|
list_commands();
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
/* --------------------------------------------------------------------- */
|
/* --------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user