aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2020-08-23 01:43:21 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2020-09-05 17:13:10 +0100
commitf788949651ef714024a29b08f4b064e78c9b4791 (patch)
tree198d808e1f5fbbaaebafc1561076caa19f9381c0
parent25b8b376387724e4c74d0c5d005b15504d44ff4c (diff)
downloadopenocd-jz4730-f788949651ef714024a29b08f4b064e78c9b4791.tar.gz
openocd: fix command's usage string
The usage string should contain only the command parameters. OpenOCD will automatically prepend the command name to the usage string while dumping the usage or help message. Remove the repeated command name from the usage string. Change-Id: If10a0f1c254aee302b9ca08958390b7f21cdb21b Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5824 Tested-by: jenkins
-rw-r--r--src/jtag/hla/hla_interface.c2
-rw-r--r--src/svf/svf.c2
-rw-r--r--src/target/nds32_cmd.c2
-rw-r--r--src/target/openrisc/or1k.c8
4 files changed, 7 insertions, 7 deletions
diff --git a/src/jtag/hla/hla_interface.c b/src/jtag/hla/hla_interface.c
index 7be9b2dea..490eb9f4d 100644
--- a/src/jtag/hla/hla_interface.c
+++ b/src/jtag/hla/hla_interface.c
@@ -341,7 +341,7 @@ static const struct command_registration hl_interface_command_handlers[] = {
.handler = &interface_handle_hla_command,
.mode = COMMAND_EXEC,
.help = "execute a custom adapter-specific command",
- .usage = "hla_command <command>",
+ .usage = "<command>",
},
COMMAND_REGISTRATION_DONE
};
diff --git a/src/svf/svf.c b/src/svf/svf.c
index b62cdae08..608703434 100644
--- a/src/svf/svf.c
+++ b/src/svf/svf.c
@@ -1556,7 +1556,7 @@ static const struct command_registration svf_command_handlers[] = {
.handler = handle_svf_command,
.mode = COMMAND_EXEC,
.help = "Runs a SVF file.",
- .usage = "svf [-tap device.tap] <file> [quiet] [nil] [progress] [ignore_error]",
+ .usage = "[-tap device.tap] <file> [quiet] [nil] [progress] [ignore_error]",
},
COMMAND_REGISTRATION_DONE
};
diff --git a/src/target/nds32_cmd.c b/src/target/nds32_cmd.c
index d7d040e4b..1684ea882 100644
--- a/src/target/nds32_cmd.c
+++ b/src/target/nds32_cmd.c
@@ -1036,7 +1036,7 @@ static const struct command_registration nds32_exec_command_handlers[] = {
.name = "login_edm_operation",
.handler = handle_nds32_login_edm_operation_command,
.mode = COMMAND_CONFIG,
- .usage = "login_edm_operation misc_reg_no value",
+ .usage = "misc_reg_no value",
.help = "add EDM operations for secure MCU debugging.",
},
{
diff --git a/src/target/openrisc/or1k.c b/src/target/openrisc/or1k.c
index 71491119b..93fb9c6a3 100644
--- a/src/target/openrisc/or1k.c
+++ b/src/target/openrisc/or1k.c
@@ -1377,21 +1377,21 @@ static const struct command_registration or1k_hw_ip_command_handlers[] = {
.name = "tap_select",
.handler = or1k_tap_select_command_handler,
.mode = COMMAND_ANY,
- .usage = "tap_select name",
+ .usage = "name",
.help = "Select the TAP core to use",
},
{
.name = "tap_list",
.handler = or1k_tap_list_command_handler,
.mode = COMMAND_ANY,
- .usage = "tap_list",
+ .usage = "",
.help = "Display available TAP core",
},
{
.name = "du_select",
.handler = or1k_du_select_command_handler,
.mode = COMMAND_ANY,
- .usage = "du_select name",
+ .usage = "name",
.help = "Select the Debug Unit core to use",
},
{
@@ -1409,7 +1409,7 @@ static const struct command_registration or1k_reg_command_handlers[] = {
.name = "addreg",
.handler = or1k_addreg_command_handler,
.mode = COMMAND_ANY,
- .usage = "addreg name addr feature group",
+ .usage = "name addr feature group",
.help = "Add a register to the register list",
},
COMMAND_REGISTRATION_DONE