Added requirement boolean for arguments as well as implemented.
This commit is contained in:
@@ -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
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user