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

args string[]

The current arguments provided to the console.

outMessage string

A message to the user about their error, if false is returned.

Returns

bool

If everything is correct.