public static FindCurrentTokenArgument ( CommandLineAction contextualAction, string currentToken, bool &expectMatchingArg, CommandLineArgumentsDefinition def = null ) : System.CommandLineArgument | ||
contextualAction | CommandLineAction | An action to inspect for a match if the current token does not match a global argument. Pass null to only check global arguments. |
currentToken | string | The token to inspect. If you pass null you will get null back. |
expectMatchingArg | bool | This will be set to true if the current token starts with a '-' or a '/' meaning that the token was an argument indicator, even if it didn't match an argument in the definition. |
def | CommandLineArgumentsDefinition | The definition to inspect. If null, the ambient definition will be used. If there is no ambient definition and null is passed then this method throws a NullReferenceException. |
return | System.CommandLineArgument |