cmd: add missing usage var
authorSpencer Oliver <spen@spen-soft.co.uk>
Mon, 9 Jan 2012 16:14:18 +0000 (16:14 +0000)
committerSpencer Oliver <spen@spen-soft.co.uk>
Thu, 12 Jan 2012 20:45:01 +0000 (20:45 +0000)
Change-Id: I0f05d643b0801b19cc3beb88f0d12d7e4c83ef9c
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/356
Tested-by: jenkins
19 files changed:
src/flash/nor/at91sam3.c
src/flash/nor/at91sam7.c
src/flash/nor/avrf.c
src/flash/nor/em357.c
src/flash/nor/fm3.c
src/flash/nor/lpc2000.c
src/flash/nor/lpc2900.c
src/flash/nor/pic32mx.c
src/flash/nor/stellaris.c
src/flash/nor/stm32f1x.c
src/flash/nor/stm32f2x.c
src/flash/nor/stm32lx.c
src/flash/nor/str7x.c
src/flash/nor/str9x.c
src/flash/nor/str9xpec.c
src/flash/nor/tms470.c
src/jtag/stlink/stlink_transport.c
src/target/target.c
src/target/target_request.c

index 85395cd..21bfa39 100644 (file)
@@ -3244,6 +3244,7 @@ static const struct command_registration at91sam3_command_handlers[] = {
                .name = "at91sam3",
                .mode = COMMAND_ANY,
                .help = "at91sam3 flash command group",
+               .usage = "",
                .chain = at91sam3_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 2b822b7..c2506be 100644 (file)
@@ -1287,6 +1287,7 @@ static const struct command_registration at91sam7_command_handlers[] = {
                .name = "at91sam7",
                .mode = COMMAND_ANY,
                .help = "at91sam7 flash command group",
+               .usage = "",
                .chain = at91sam7_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 1ade452..462aee2 100644 (file)
@@ -492,6 +492,7 @@ static const struct command_registration avrf_command_handlers[] = {
                .name = "avrf",
                .mode = COMMAND_ANY,
                .help = "AVR flash command group",
+               .usage = "",
                .chain = avrf_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index c045d57..2e40601 100644 (file)
@@ -946,6 +946,7 @@ static const struct command_registration em357_command_handlers[] = {
                .name = "em357",
                .mode = COMMAND_ANY,
                .help = "em357 flash command group",
+               .usage = "",
                .chain = em357_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 78e71d2..2119e4f 100644 (file)
@@ -886,6 +886,7 @@ static const struct command_registration fm3_command_handlers[] = {
                .name = "fm3",
                .mode = COMMAND_ANY,
                .help = "fm3 Flash command group",
+               .usage = "",
                .chain = fm3_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index b4e17e7..b9b04fe 100644 (file)
@@ -836,6 +836,7 @@ static const struct command_registration lpc2000_exec_command_handlers[] = {
                .handler = lpc2000_handle_part_id_command,
                .mode = COMMAND_EXEC,
                .help = "print part id of lpc2000 flash bank <num>",
+               .usage = "<bank>",
        },
        COMMAND_REGISTRATION_DONE
 };
@@ -844,6 +845,7 @@ static const struct command_registration lpc2000_command_handlers[] = {
                .name = "lpc2000",
                .mode = COMMAND_ANY,
                .help = "lpc2000 flash command group",
+               .usage = "",
                .chain = lpc2000_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 4960e9c..5a80b32 100644 (file)
@@ -1004,6 +1004,7 @@ static const struct command_registration lpc2900_command_handlers[] = {
                .name = "lpc2900",
                .mode = COMMAND_ANY,
                .help = "LPC2900 flash command group",
+               .usage = "",
                .chain = lpc2900_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 957bfc2..cc7d99c 100644 (file)
@@ -855,6 +855,7 @@ static const struct command_registration pic32mx_command_handlers[] = {
                .name = "pic32mx",
                .mode = COMMAND_ANY,
                .help = "pic32mx flash command group",
+               .usage = "",
                .chain = pic32mx_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 13b7071..10e4d55 100644 (file)
@@ -1451,6 +1451,7 @@ static const struct command_registration stellaris_command_handlers[] = {
                .name = "stellaris",
                .mode = COMMAND_EXEC,
                .help = "Stellaris flash command group",
+               .usage = "",
                .chain = stellaris_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 738c2da..b4ec93f 100644 (file)
@@ -1671,6 +1671,7 @@ static const struct command_registration stm32x_command_handlers[] = {
                .name = "stm32f1x",
                .mode = COMMAND_ANY,
                .help = "stm32f1x flash command group",
+               .usage = "",
                .chain = stm32x_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index b7e1009..6457f20 100644 (file)
@@ -807,6 +807,7 @@ static const struct command_registration stm32x_command_handlers[] = {
                .name = "stm32f2x",
                .mode = COMMAND_ANY,
                .help = "stm32f2x flash command group",
+               .usage = "",
                .chain = stm32x_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 2cd16d6..8ba2b83 100644 (file)
@@ -740,6 +740,7 @@ static const struct command_registration stm32lx_command_handlers[] =
                .name = "stm32lx",
                .mode = COMMAND_ANY,
                .help = "stm32lx flash command group",
+               .usage = "",
                .chain = stm32lx_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 0bfe7c9..86db9ab 100644 (file)
@@ -853,6 +853,7 @@ static const struct command_registration str7x_command_handlers[] = {
                .name = "str7x",
                .mode = COMMAND_ANY,
                .help = "str7x flash command group",
+               .usage = "",
                .chain = str7x_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 674522c..1f2c958 100644 (file)
@@ -735,6 +735,7 @@ static const struct command_registration str9x_command_handlers[] = {
                .name = "str9x",
                .mode = COMMAND_ANY,
                .help = "str9x flash command group",
+               .usage = "",
                .chain = str9x_config_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 0e095a3..fc2ed35 100644 (file)
@@ -1279,6 +1279,7 @@ static const struct command_registration str9xpec_command_handlers[] = {
                .name = "str9xpec",
                .mode = COMMAND_ANY,
                .help = "str9xpec flash command group",
+               .usage = "",
                .chain = str9xpec_config_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index b28aee4..393ca76 100644 (file)
@@ -863,6 +863,7 @@ static const struct command_registration tms470_command_handlers[] = {
                .name = "tms470",
                .mode = COMMAND_ANY,
                .help = "TI tms470 flash command group",
+               .usage = "",
                .chain = tms470_any_command_handlers,
        },
        COMMAND_REGISTRATION_DONE
index 6f16195..c073ffe 100644 (file)
@@ -59,16 +59,19 @@ stlink_transport_jtag_subcommand_handlers[] = {
         .name = "init",
         .mode = COMMAND_ANY,
         .handler = stlink_transport_jtag_command,
+        .usage = ""
         },
        {
         .name = "arp_init",
         .mode = COMMAND_ANY,
         .handler = stlink_transport_jtag_command,
+        .usage = ""
         },
        {
         .name = "arp_init-reset",
         .mode = COMMAND_ANY,
         .handler = stlink_transport_jtag_command,
+        .usage = ""
         },
        {
         .name = "tapisenabled",
@@ -84,11 +87,13 @@ stlink_transport_jtag_subcommand_handlers[] = {
         .name = "tapdisable",
         .mode = COMMAND_EXEC,
         .handler = stlink_transport_jtag_command,
+        .usage = "",
         },
        {
         .name = "configure",
         .mode = COMMAND_EXEC,
         .handler = stlink_transport_jtag_command,
+        .usage = "",
         },
        {
         .name = "cget",
@@ -99,6 +104,7 @@ stlink_transport_jtag_subcommand_handlers[] = {
         .name = "names",
         .mode = COMMAND_ANY,
         .handler = stlink_transport_jtag_command,
+        .usage = "",
         },
 
        COMMAND_REGISTRATION_DONE
@@ -110,11 +116,13 @@ static const struct command_registration stlink_transport_command_handlers[] = {
         .name = "stlink",
         .mode = COMMAND_ANY,
         .help = "perform stlink actions",
+        .usage = "",
         .chain = stlink_transport_stlink_subcommand_handlers,
         },
        {
         .name = "jtag",
         .mode = COMMAND_ANY,
+        .usage = "",
         .chain = stlink_transport_jtag_subcommand_handlers,
         },
        COMMAND_REGISTRATION_DONE
index 692b78f..c3d65e3 100644 (file)
@@ -5050,6 +5050,7 @@ static int target_create(Jim_GetOptInfo *goi)
                        .name = cp,
                        .mode = COMMAND_ANY,
                        .help = "target command group",
+                       .usage = "",
                        .chain = target_subcommands,
                },
                COMMAND_REGISTRATION_DONE
index c669ab4..090de9f 100644 (file)
@@ -326,6 +326,7 @@ static const struct command_registration target_req_command_handlers[] = {
                .name = "target_request",
                .mode = COMMAND_ANY,
                .help = "target request command group",
+               .usage = "",
                .chain = target_req_exec_command_handlers,
        },
        COMMAND_REGISTRATION_DONE