Skip to content

Commit b8085b1

Browse files
committed
Changes to the help command default callback so that it works more as expected.
1 parent 250f6db commit b8085b1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Runtime/DevConsoleMono.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ private void InitBuiltInCommands()
14551455

14561456
if (!string.IsNullOrEmpty(command.HelpText))
14571457
{
1458-
Log(command.HelpText + ".");
1458+
Log($"{command.HelpText}.");
14591459
}
14601460

14611461
if (command.Aliases?.Length > 0 && command.Aliases.Any(a => !string.IsNullOrEmpty(a)))
@@ -1481,8 +1481,9 @@ private void InitBuiltInCommands()
14811481
},
14821482
() =>
14831483
{
1484-
if (string.IsNullOrEmpty(_previousCommand) || _previousCommand.ToLower().Equals("help"))
1484+
if (string.IsNullOrWhiteSpace(_previousCommand) || _previousCommand.ToLower().Equals("help"))
14851485
{
1486+
RunCommand($"help help");
14861487
return;
14871488
}
14881489

0 commit comments

Comments
 (0)