openocd: fix command's usage string 24/5824/2
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 22 Aug 2020 23:43:21 +0000 (01:43 +0200)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 5 Sep 2020 16:13:10 +0000 (17:13 +0100)
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
src/jtag/hla/hla_interface.c
src/svf/svf.c
src/target/nds32_cmd.c
src/target/openrisc/or1k.c

index 7be9b2deaf89ccf482fcce184b6d7900e8e7b5bd..490eb9f4dc984593385b9461829208cc5a5d4c18 100644 (file)
@@ -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
 };
index b62cdae08feca1beda1f70aea5bd9e8b2bf20c84..608703434aa8618184aa33065dea0ed120539049 100644 (file)
@@ -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
 };
index d7d040e4b963a0205a8257e9292ebd902f43cbde..1684ea8824483e178d91ebb114096758c43b0561 100644 (file)
@@ -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.",
        },
        {
index 71491119ba9b5d5151d3dd5d0b3fa77a09cfad4c..93fb9c6a3a3d4ba77c27bd9a6dd269426f37866f 100644 (file)
@@ -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

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)