From 2facad742490f16f769e7c9fbd6397efc2dbaf45 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 20 Feb 2018 21:57:43 +1100 Subject: [PATCH] hwstub tools: fix/improve usage help Change-Id: Id1afbe8adaf29887fc97c570ae33127a40a046b6 --- utils/hwstub/tools/hwstub_load.cpp | 5 ++--- utils/hwstub/tools/hwstub_shell.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/utils/hwstub/tools/hwstub_load.cpp b/utils/hwstub/tools/hwstub_load.cpp index 44ac56fda2..8db1963174 100644 --- a/utils/hwstub/tools/hwstub_load.cpp +++ b/utils/hwstub/tools/hwstub_load.cpp @@ -107,12 +107,11 @@ void usage(void) { printf("usage: hwstub_load [options] \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 Override file type\n"); printf(" --dev/-d 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); } diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index 9fda72981f..4f94be08ab 100644 --- a/utils/hwstub/tools/hwstub_shell.cpp +++ b/utils/hwstub/tools/hwstub_shell.cpp @@ -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); }