diff options
Diffstat (limited to 'utils/hwstub')
-rw-r--r-- | utils/hwstub/tools/hwstub_load.cpp | 9 | ||||
-rw-r--r-- | utils/hwstub/tools/hwstub_shell.cpp | 2 |
2 files changed, 6 insertions, 5 deletions
diff --git a/utils/hwstub/tools/hwstub_load.cpp b/utils/hwstub/tools/hwstub_load.cpp index 7e79b206cb..ab9ab7b967 100644 --- a/utils/hwstub/tools/hwstub_load.cpp +++ b/utils/hwstub/tools/hwstub_load.cpp | |||
@@ -106,10 +106,11 @@ bool could_be_rockbox(unsigned char *buffer, size_t size) | |||
106 | 106 | ||
107 | void usage(void) | 107 | void usage(void) |
108 | { | 108 | { |
109 | printf("usage: hwstub::load [options] <addr> <file>\n"); | 109 | printf("usage: hwstub_load [options] <addr> <file>\n"); |
110 | printf("options:\n"); | 110 | printf("options:\n"); |
111 | printf(" --help/-? Display this help\n"); | 111 | printf(" --help/-? Display this help\n"); |
112 | printf(" --quiet/-q Quiet output\n"); | 112 | printf(" --quiet/-q Quiet output\n"); |
113 | printf(" --verbose/-v Verbose output\n"); | ||
113 | printf(" --type/-t <t> Override file type\n"); | 114 | printf(" --type/-t <t> Override file type\n"); |
114 | printf(" --dev/-d <uri> Device URI (see below)\n"); | 115 | printf(" --dev/-d <uri> Device URI (see below)\n"); |
115 | printf(" --verbose/-v Display debug output\n"); | 116 | printf(" --verbose/-v Display debug output\n"); |
@@ -140,7 +141,7 @@ int main(int argc, char **argv) | |||
140 | { | 141 | { |
141 | static struct option long_options[] = | 142 | static struct option long_options[] = |
142 | { | 143 | { |
143 | {"help", no_argument, 0, '?'}, | 144 | {"help", no_argument, 0, 'h'}, |
144 | {"quiet", no_argument, 0, 'q'}, | 145 | {"quiet", no_argument, 0, 'q'}, |
145 | {"type", required_argument, 0, 't'}, | 146 | {"type", required_argument, 0, 't'}, |
146 | {"dev", required_argument, 0, 'd'}, | 147 | {"dev", required_argument, 0, 'd'}, |
@@ -150,7 +151,7 @@ int main(int argc, char **argv) | |||
150 | {0, 0, 0, 0} | 151 | {0, 0, 0, 0} |
151 | }; | 152 | }; |
152 | 153 | ||
153 | int c = getopt_long(argc, argv, "?qt:d:elv", long_options, NULL); | 154 | int c = getopt_long(argc, argv, "hqt:d:elv", long_options, NULL); |
154 | if(c == -1) | 155 | if(c == -1) |
155 | break; | 156 | break; |
156 | switch(c) | 157 | switch(c) |
@@ -160,7 +161,7 @@ int main(int argc, char **argv) | |||
160 | case 'q': | 161 | case 'q': |
161 | quiet = true; | 162 | quiet = true; |
162 | break; | 163 | break; |
163 | case '?': | 164 | case 'h': |
164 | usage(); | 165 | usage(); |
165 | break; | 166 | break; |
166 | case 't': | 167 | case 't': |
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index 336b7fed6b..347793df86 100644 --- a/utils/hwstub/tools/hwstub_shell.cpp +++ b/utils/hwstub/tools/hwstub_shell.cpp | |||
@@ -1299,7 +1299,7 @@ void usage(void) | |||
1299 | printf("shell, compiled with hwstub protocol %d.%d\n", | 1299 | printf("shell, compiled with hwstub protocol %d.%d\n", |
1300 | HWSTUB_VERSION_MAJOR, HWSTUB_VERSION_MINOR); | 1300 | HWSTUB_VERSION_MAJOR, HWSTUB_VERSION_MINOR); |
1301 | printf("\n"); | 1301 | printf("\n"); |
1302 | printf("usage: shell [options] <soc desc files>\n"); | 1302 | printf("usage: hwstub_shell [options] <soc desc files>\n"); |
1303 | printf("options:\n"); | 1303 | printf("options:\n"); |
1304 | printf(" --help/-? Display this help\n"); | 1304 | printf(" --help/-? Display this help\n"); |
1305 | printf(" --quiet/-q Quiet non-command messages\n"); | 1305 | printf(" --quiet/-q Quiet non-command messages\n"); |