Edit

Share via


Option<T>.AcceptOnlyFromAmong(String[]) Method

Definition

Configures the option to accept only the specified values, and to suggest them as command line completions.

public:
 System::CommandLine::Option<T> ^ AcceptOnlyFromAmong(... cli::array <System::String ^> ^ values);
public System.CommandLine.Option<T> AcceptOnlyFromAmong(params string[] values);
member this.AcceptOnlyFromAmong : string[] -> System.CommandLine.Option<'T>
Public Function AcceptOnlyFromAmong (ParamArray values As String()) As Option(Of T)

Parameters

values
String[]

The values that are allowed for the option.

Returns

Applies to