close #30 added overwritable help command parameter and fixed some compiler issues (some of them only appeared when compiling with optimization)
This commit is contained in:
@@ -327,7 +327,12 @@ static shellmatta_retCode_t helpCmdFct(shellmatta_handle_t handle, const char *a
|
||||
|
||||
return ret;
|
||||
}
|
||||
shellmatta_cmd_t helpCmd = {(char*)"help", (char*)"h", (char*)"Print this help text", (char*)"help", helpCmdFct, NULL};
|
||||
shellmatta_cmd_t helpCmd = { SHELLMATTA_HELP_COMMAND
|
||||
, SHELLMATTA_HELP_ALIAS
|
||||
, SHELLMATTA_HELP_HELP_TEXT
|
||||
, SHELLMATTA_HELP_USAGE_TEXT
|
||||
, helpCmdFct
|
||||
, NULL};
|
||||
|
||||
/**
|
||||
* @brief terminates an input and prints the prompt again
|
||||
|
Reference in New Issue
Block a user