Метод | Описание | |
---|---|---|
Clean ( ) : void |
Resets all portions of the model that may have side effects from being run through the argument processor.
|
|
CommandLineArgumentsDefinition ( ) : System |
Creates an empty command line arguments definition.
|
|
CommandLineArgumentsDefinition ( |
Creates a command line arguments definition and infers things like Arguments, Actions, etc. from the type's metadata.
|
|
CreateVariableResolver ( ) : IBooleanVariableResolver |
Gives you an object that you can use to tell if a particular argument was specified on the command line.
|
|
FindArgumentByPosition ( int position, string action = null ) : CommandLineArgument |
Finds the command line argument that is allowed to be specified in the given position (zero based). You can also pass an action name if you know the context of a targeted action.
|
|
FindMatchingAction ( string key, bool throwIfMoreThanOneMatch = false ) : |
Finds the first CommandLineAction that matches the given key
|
|
FindMatchingArgument ( string key, bool throwIfMoreThanOneMatch = false ) : CommandLineArgument |
Finds the first CommandLineArgument that matches the given key.
|
|
ToString ( ) : string |
Gets a basic string representation of the definition.
|
Метод | Описание | |
---|---|---|
FindCommandLineActions ( |
||
FindCommandLineArguments ( |
||
FindMatchingArgument ( string key, bool throwIfMoreThanOneMatch, IEnumerable |
||
MakeUsageSummary ( bool htmlEncodeBrackets = false ) : string | ||
SetPropertyValues ( object o ) : void | ||
Validate ( PowerArgs.ArgHook context ) : void | ||
ValidateActionAliases ( ) : void | ||
ValidateArguments ( IEnumerable |
public CommandLineArgumentsDefinition ( ) : System | ||
Результат | System |
public CommandLineArgumentsDefinition ( |
||
t | The argument scaffold type used to infer the definition | |
Результат | System |
public CreateVariableResolver ( ) : IBooleanVariableResolver | ||
Результат | IBooleanVariableResolver |
public FindArgumentByPosition ( int position, string action = null ) : CommandLineArgument | ||
position | int | the position of the argument |
action | string | optionally specify the name of an action which may also have positional arguments defined |
Результат | CommandLineArgument |
public FindMatchingAction ( string key, bool throwIfMoreThanOneMatch = false ) : |
||
key | string | The key as if it was typed in on the command line. This can also be an alias. |
throwIfMoreThanOneMatch | bool | If set to true then this method will throw and InvalidArgDeginitionException if more than 1 match is found |
Результат |
public FindMatchingArgument ( string key, bool throwIfMoreThanOneMatch = false ) : CommandLineArgument | ||
key | string | The key as if it was typed in on the command line. This can also be an alias. |
throwIfMoreThanOneMatch | bool | If set to true then this method will throw and InvalidArgDeginitionException if more than 1 match is found |
Результат | CommandLineArgument |