Option<T>.AcceptOnlyFromAmong(String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.