Delegate ConsoleCommand.ValidateMethod
- Namespace
- Elegy.ConsoleSystem.Commands
- Assembly
- Elegy.ConsoleSystem.dll
Called for every keystroke when the command's arguments are typed out. Provides feedback as to whether the input is correct.
public delegate bool ConsoleCommand.ValidateMethod(string[] args, out string? outMessage)
Parameters
argsstring[]The current arguments provided to the console.
outMessagestringA message to the user about their error, if
falseis returned.
Returns
- bool
If everything is correct.