Clarified help message.

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

View File

@ -88,6 +88,8 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
/// <param name="arguments">The array containing all arguments.</param>
/// <returns>The index or throws argument exception if it doesn't exist.</returns>
public int IndexOfArgumentIn(string argument, string[] arguments)
{
if (arguments != null)
{
for (int i = 0; i < arguments.Length; i++)
{
@ -96,7 +98,8 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
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)