Enable -help for non-root users
When a non-root account was detected only the version command was registered. This
resulted in the parsing of the command line failing and then assumed to be because
the account was not root. Now when -help is specified all commands are registered.
Fixes
@@ -450,7 +450,8 @@ UefiMain(
}
#else
- if (g_basic_commands)
+ // if help is requested Register all the commands so parsing will work later
+ if (g_basic_commands && !HelpRequested)
{
Rc = RegisterNonAdminUserCommands();
if (EFI_ERROR(Rc)) {
