= Fixed choose to display help when there are no arguments provided

This commit is contained in:
Matthew Cech committed 2019-06-17 22:01:47 -07:00
1 parent 85c30f9e84
commit ede40ef9e3
2 files changed
+10 -3

No files matched your search

+3 -3
View File
@@ -111,12 +111,12 @@ public class CommandManager
}
// Looks up command by name. If it exists, dumps help text, otherwise returns null.
public String GetCommandHelpText(String lookup)
public String GetCommandHelpText(String key)
{
Command command = commands.get(lookup);
Command command = commands.get(key);
if(command != null)
return command.HelpText();
return "`" + key + "`: " + command.HelpText();
return null;
}