CliArgumentAttribute.ValidationPattern Property
Definition
- Namespace
- DotMake.CommandLine
- Assembly
- DotMake.CommandLine.dll
Gets or sets a regular expression pattern used to determine if argument value(s) is valid.
Note that you can specify regular expression options inline in the pattern with the syntax (?imnsx-imnsx):
ValidationPattern = @"(?i)^[a-z]+$"
Regular expression quick reference
Regular expression options
public string ValidationPattern { get; set; }