Clarified help message.

This commit is contained in:
Harrison Deng 2018-12-29 01:09:35 -06:00
parent 106373ce34
commit 81801746e1

View File

@ -89,14 +89,17 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
/// <returns>The index or throws argument exception if it doesn't exist.</returns>
public int IndexOfArgumentIn(string argument, string[] arguments)
{
for (int i = 0; i < arguments.Length; i++)
if (arguments != null)
{
if (arguments[i] == argument)
for (int i = 0; i < arguments.Length; i++)
{
return i;
if (arguments[i] == argument)
{
return i;
}
}
}
throw new ArgumentException("Argument " + argument + " is missing. Type \"help\" for more information.");
throw new ArgumentException("Expected argument " + argument + " is missing. Type \"help\" for more information.");
}
public bool HasArgument(string argument, string[] arguments)