Click or drag to resize

CommandUtilsHandleCommand Method

Handles a command from the received arguments. The command is handled automaticaly if it asks for an help response. Else, the execution callback is called with the command object.

Namespace:  MicaSystems.Utils.CLI
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static void HandleCommand(
	string[] args,
	CommandExecution execution = null,
	Assembly commandAssembly = null
)

Parameters

args
Type: SystemString
The command arguments.
execution (Optional)
Type: MicaSystems.Utils.CLICommandExecution
The callback method, called when the command has been interpreted and does not concern help. If this parameter is null, the command is simply executed.
commandAssembly (Optional)
Type: System.ReflectionAssembly
The assembly containing the commands classes, the default value is the calling assembly.
See Also