Table of Contents

CliValidationExtensions.AddGroupValidator Method

Definition

Namespace
DotMake.CommandLine
Assembly
DotMake.CommandLine.dll

Adds a validator to command that enforces mutual-exclusion for the provided options. If required is true, at least one option must be specified.

public static void AddGroupValidator(this Command command, string group, bool required, params Option[] options)

Parameters

command Command
group string
required bool
options Option[]