C# Class PowerArgs.ArgRequired

Inheritance: PowerArgs.ArgValidator
Afficher le fichier Open project: adamabdelhamed/PowerArgs Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Creates a new ArgRequired attribute.
public ArgRequired ( ) : System
Résultat System

ValidateAlways() public méthode

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
Résultat void