Added requirement boolean for arguments as well as implemented.

This commit is contained in:
2019-01-13 00:13:57 -06:00
parent 1070deb193
commit 477f827c1a
4 changed files with 15 additions and 11 deletions

View File

@@ -142,6 +142,9 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
{
if (Validate(argument))
{
EngineCommandArgument eca = EngineCommandArgumentOf(argument);
string helpString = eca.help;
if (eca.required) helpString = helpString + " required.";
return EngineCommandArgumentOf(argument).help;
}
else

View File

@@ -8,11 +8,12 @@ namespace RecrownedAthenaeum.Tools.CommandProcessor
{
public string invokeString;
public string help;
public EngineCommandArgument(string invokeString, string help)
public bool required;
public EngineCommandArgument(string invokeString, string help, bool required = false)
{
this.invokeString = invokeString;
this.help = help;
this.required = required;
}
}
}