rmbox: fix help output to show all options

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
This commit is contained in:
Liam Girdwood 2017-08-30 22:24:03 +01:00
parent 811918df70
commit 7a1105772d
1 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,10 @@ static inline char get_char(uint32_t val, int idx)
static void usage(char *name)
{
fprintf(stdout, "%s:\t -i infile -o outfile\n", name);
fprintf(stdout, "Usage %s <option(s)> <file(s)>\n", name);
fprintf(stdout, "%s:\t -i infile -o outfile\tDump infile contents to outfile\n", name);
fprintf(stdout, "%s:\t -c\t\t\tSet timestamp clock in MHz\n", name);
fprintf(stdout, "%s:\t -s\t\t\tTake a snapshot of state\n", name);
exit(0);
}
@ -276,9 +279,6 @@ int main(int argc, char *argv[])
}
}
if (argc > 1 && (in_file == NULL || out_file == NULL))
usage(argv[0]);
/* open infile for reading */
in_fd = fopen(in_file, "r");
if (in_fd == NULL) {