hwstub tools: fix/improve usage help

Change-Id: Id1afbe8adaf29887fc97c570ae33127a40a046b6
This commit is contained in:
Amaury Pouly 2018-02-20 21:57:43 +11:00
parent 860582a63a
commit 2facad7424
2 changed files with 3 additions and 4 deletions

View file

@ -107,12 +107,11 @@ void usage(void)
{
printf("usage: hwstub_load [options] <addr> <file>\n");
printf("options:\n");
printf(" --help/-? Display this help\n");
printf(" --help/-h Display this help\n");
printf(" --quiet/-q Quiet output\n");
printf(" --verbose/-v Verbose output\n");
printf(" --type/-t <t> Override file type\n");
printf(" --dev/-d <uri> Device URI (see below)\n");
printf(" --verbose/-v Display debug output\n");
printf(" --noload Skip loading stage and only execute the given address\n");
printf(" --noexec Skip execute stage and only load data the given address\n");
printf("file types:\n");
@ -123,7 +122,7 @@ void usage(void)
for(int i = 0; players[i].name; i++)
printf(" %s", players[i].name);
printf("\n");
//hwstub::usage_uri(stdout);
hwstub::uri::print_usage(stdout, true, false);
exit(1);
}

View file

@ -1341,7 +1341,7 @@ void usage(void)
printf(" --debug-rw Print read/write\n");
printf("Relative order of -e and -f commands are preserved.\n");
printf("Unless specified, the shell will load soc desc in regtools/desc/\n");
//usage_uri(stdout);
hwstub::uri::print_usage(stdout, true, false);
exit(1);
}