C# Class PowerArgs.ArgRequired

Inheritance: PowerArgs.ArgValidator
Datei anzeigen Open project: adamabdelhamed/PowerArgs Class Usage Examples

Public Methods

Method Description
ArgRequired ( ) : System

Creates a new ArgRequired attribute.

ValidateAlways ( CommandLineArgument argument, string &arg ) : void

Validates that the user actually specified a value and optionally prompts them when it is missing.

Method Details

ArgRequired() public method

Creates a new ArgRequired attribute.
public ArgRequired ( ) : System
return System

ValidateAlways() public method

Validates that the user actually specified a value and optionally prompts them when it is missing.
public ValidateAlways ( CommandLineArgument argument, string &arg ) : void
argument CommandLineArgument The argument being populated. This validator doesn't do anything with it.
arg string The value specified on the command line or null if it wasn't specified
return void