Table of Contents

Interface IArgumentValidator

Namespace
McMaster.Extensions.CommandLineUtils.Validation
Assembly
McMaster.Extensions.CommandLineUtils.dll

Provides validation for a CommandArgument.

public interface IArgumentValidator

Methods

GetValidationResult(CommandArgument, ValidationContext)

Validates the values specified for Values.

ValidationResult? GetValidationResult(CommandArgument argument, ValidationContext context)

Parameters

argument CommandArgument

The argument.

context ValidationContext

The validation context.

Returns

ValidationResult

The validation result. Returns Success if the values pass validation.