lf help text

This commit is contained in:
iceman1001 2020-09-24 19:51:57 +02:00
commit cabe121ca8
2 changed files with 12 additions and 7 deletions

View file

@ -168,7 +168,11 @@ void CmdsHelp(const command_t Commands[]) {
while (Commands[i].Name) {
if (Commands[i].IsAvailable()) {
g_printAndLog = PRINTANDLOG_PRINT;
PrintAndLogEx(NORMAL, _GREEN_("%-16s")" %s", Commands[i].Name, Commands[i].Help);
if (Commands[i].Name[0] == '-' || Commands[i].Name[0] == ' ') {
PrintAndLogEx(NORMAL, "%-16s %s", Commands[i].Name, Commands[i].Help);
} else {
PrintAndLogEx(NORMAL, _GREEN_("%-16s")" %s", Commands[i].Name, Commands[i].Help);
}
g_printAndLog = PRINTANDLOG_PRINT | PRINTANDLOG_LOG;
}
++i;