Allow to see help from all categories

This commit is contained in:
Philippe Teuwen 2021-04-19 01:16:39 +02:00
commit e2cc02af49
2 changed files with 5 additions and 3 deletions

View file

@ -249,7 +249,9 @@ int CmdsParse(const command_t Commands[], const char *Cmd) {
int i = 0;
while (Commands[i].Name) {
if (0 == strcmp(Commands[i].Name, cmd_name)) {
if (request_help || Commands[i].IsAvailable()) {
if ((Commands[i].Help[0] == '{') || // always allow parsing categories
request_help || // always allow requesting help
Commands[i].IsAvailable()) {
break;
} else {
PrintAndLogEx(WARNING, "This command is " _YELLOW_("not available") " in this mode");