CliValidationExtensions Class

Provides extension methods related to validation for CliArgument and CliOption.

Definition

Namespace: DotMake.CommandLine
Assembly: DotMake.CommandLine (in DotMake.CommandLine.dll) Version: 1.8.8
C#
public static class CliValidationExtensions
Inheritance
Object    CliValidationExtensions

Methods

AddValidator(CliArgument, CliValidationRules) Adds validation rules to an argument. Validation rules can be used to provide errors based on user input.
AddValidator(CliOption, CliValidationRules) Adds validation rules to an option's argument. Validation rules can be used to provide errors based on user input.
AddValidator(CliArgument, String, String) Adds a validation pattern to an argument. A validation pattern can be used to provide errors based on user input.
AddValidator(CliOption, String, String) Adds a validation pattern to an option's argument. A validation pattern can be used to provide errors based on user input.

See Also