Class ArgumentsExtractor
Utility class for simplifying the process of extracting CommandArguments from a Command received by the server.
Inherited Members
Namespace: Petabridge.Cmd.Common
Assembly: Petabridge.Cmd.Common.dll
Syntax
public static class ArgumentsExtractor
Methods
ExtractArgs(CommandDefinition, Command)
For a given CommandDefinition, extract all of the arguments from a Command of the same type and return them into an easily accessible ParsedArguments collection.
Declaration
public static ParsedArguments ExtractArgs(this CommandDefinition definition, Command cmd)
Parameters
Type | Name | Description |
---|---|---|
CommandDefinition | definition | The command definition. |
Command | cmd | The command of the same type as [definition]. |
Returns
Type | Description |
---|---|
ParsedArguments | A ParsedArguments collection. |