@@ -119,6 +119,12 @@ usage(void)
printf("sloffs lists or changes a SLOF flash image\n\n");
printf("Usage:\n");
printf(" sloffs [OPTION]... [FILE]\n\n");
+ printf("Options:\n");
+ printf(" -h, --help show this help, then exit\n");
+ printf(" -l, --list print a listing of all files in the image\n");
+ printf(" -v, --version print the version, then exit\n");
+ printf(" -d, --dump dump the information from the header\n");
+ printf("\n");
exit(1);
}
@@ -132,9 +138,10 @@ main(int argc, char *argv[])
{ "help", 0, NULL, 'h' },
{ "list", 0, NULL, 'l' },
{ "version", 0, NULL, 'v' },
+ { "dump", 0, NULL, 'd' },
{ 0, 0, 0, 0 }
};
- const char *soption = "hlv";
+ const char *soption = "dhlv";
int c;
char mode;
(cherry picked from commit e6369bb10bf7e38573ffa78196b74d889f5272c6) Cherry picked from https://lisas.de/~adrian/slof/slof.git/ Signed-off-by: Adrian Reber <adrian@lisas.de> --- tools/sloffs.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)