cmd: add missing usage vars
[fw/openocd] / src / target / oocd_trace.c
index 5af1ba65098ee7ff038f25c4942669b08ba91aeb..09beba95bd6e4353af612ad5101d706fe154b8d6 100644 (file)
@@ -284,8 +284,7 @@ COMMAND_HANDLER(handle_oocd_trace_config_command)
 
        if (CMD_ARGC != 2)
        {
-               LOG_ERROR("incomplete 'oocd_trace config <target> <tty>' command");
-               return ERROR_FAIL;
+               return ERROR_COMMAND_SYNTAX_ERROR;
        }
 
        target = get_current_target(CMD_CTX);
@@ -400,18 +399,20 @@ static const struct command_registration oocd_trace_all_command_handlers[] = {
                .name = "config",
                .handler = handle_oocd_trace_config_command,
                .mode = COMMAND_CONFIG,
-               .usage = "target",
+               .usage = "<target> <tty>",
        },
        {
                .name = "status",
                .handler = handle_oocd_trace_status_command,
                .mode = COMMAND_EXEC,
+               .usage = "",
                .help = "display OpenOCD + trace status",
        },
        {
                .name = "resync",
                .handler = handle_oocd_trace_resync_command,
                .mode = COMMAND_EXEC,
+               .usage = "",
                .help = "resync OpenOCD + trace capture clock",
        },
        COMMAND_REGISTRATION_DONE
@@ -421,6 +422,7 @@ static const struct command_registration oocd_trace_command_handlers[] = {
                .name = "oocd_trace",
                .mode = COMMAND_ANY,
                .help = "OpenOCD trace capture driver command group",
+               .usage = "",
                .chain = oocd_trace_all_command_handlers,
        },
        COMMAND_REGISTRATION_DONE