- if ((gUnicodeCollation->MetaiMatch(gUnicodeCollation, (CHAR16 *)DynamicCommand->CommandName, CommandToGetHelpOn)) ||\r
- (gEfiShellProtocol->GetAlias(CommandToGetHelpOn, NULL) != NULL && (gUnicodeCollation->MetaiMatch(gUnicodeCollation, (CHAR16 *)DynamicCommand->CommandName, (CHAR16*)(gEfiShellProtocol->GetAlias(CommandToGetHelpOn, NULL)))))) {\r
- //\r
- // TODO: how to get proper language?\r
- //\r
- OutText = DynamicCommand->GetHelp(DynamicCommand, "en");\r
-\r
- if (OutText == NULL) {\r
- continue;\r
- }\r
-\r
- //\r
- // Trim extra characters from the end the the string before printing\r
- //\r
- while (StrLen(OutText) > 0 \r
- && (OutText[StrLen(OutText) - 1] == L'\r' || OutText[StrLen(OutText) - 1] == L'\n' || OutText[StrLen(OutText) - 1] == L' ')) {\r
- OutText[StrLen(OutText) - 1] = CHAR_NULL;\r
- }\r
-\r
- //\r
- // Make sure we have something to print still.\r
- //\r
- if (StrLen(OutText) == 0) {\r
- FreePool(OutText);\r
- OutText = NULL;\r
- continue;\r
- }\r
-\r
- //\r
- // Print and move on.\r
- //\r
- ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN(STR_HELP_COMMAND), gShellLevel3HiiHandle, DynamicCommand->CommandName, OutText);\r
- FreePool(OutText);\r
- OutText = NULL;\r
- Found = TRUE;\r