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:
Johan Hedberg 2017-11-14 15:51:40 +02:00 committed by Johan Hedberg
commit 7f6070fb6c
2 changed files with 8 additions and 4 deletions

View file

@ -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.