shell: Add optional command description
The command name and a shortened form of valid parameters is not necessarily enough to understand its usage. Add the option of providing a more lengthy description of the command usage. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
a57f26c673
commit
7f6070fb6c
2 changed files with 8 additions and 4 deletions
|
@ -29,6 +29,7 @@ struct shell_cmd {
|
|||
const char *cmd_name;
|
||||
shell_cmd_function_t cb;
|
||||
const char *help;
|
||||
const char *desc;
|
||||
};
|
||||
|
||||
/** @brief Callback to get the current prompt.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue