Update shellEngine.c
This commit is contained in:
parent
9d433926cb
commit
a823dc3a31
|
@ -164,9 +164,11 @@ int32_t shellRunCommand(char *command, bool recordHistory) {
|
|||
}
|
||||
|
||||
// add help or help;
|
||||
if (strncasecmp(command, "help;", 5) == 0) {
|
||||
showHelp();
|
||||
return 0;
|
||||
if (strncasecmp(command, "help", 4) == 0) {
|
||||
if(command[4] == ';' || command[4] == ' ' || command[4] == 0) {
|
||||
showHelp();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (recordHistory) shellRecordCommandToHistory(command);
|
||||
|
|
Loading…
Reference in New Issue