RequiresConstraint(String, String[], Func?) Constructor

Definition

Assembly XenoAtom.CommandLine.dll

Creates a new requires constraint.

public RequiresConstraint(string optionName, string[] requiredOptionNames, Func<bool>? active = null)

Parameters

optionName
String

The option that triggers the requirement.

requiredOptionNames
String[]

One or more required option names.

active
Func<Boolean>

A callback that indicates if this constraint is active.