register_commands_override_target() function
Register one or more commands, as register_commands(), plus specify that command should override the current target
Arguments
cmd_ctx
The command_context in which to register the command.
cmd_prefix
Register this command as a child of this, or NULL to register a top-level command.
cmds
Pointer to an array of command_registration records that contains the desired command parameters. The last record must have NULL for all fields.
target
The target that has to override current target.
Return value
ERROR_OK on success; ERROR_FAIL if any registration fails.