Option<T>
Option(String, String)
Option(String, String[])
Option(String[], String)
Argument
CustomParser
DefaultValueFactory
ValueType
AcceptLegalFileNamesOnly()
AcceptLegalFilePathsOnly()
AcceptOnlyFromAmong(String[])
AcceptOnlyFromAmong(StringComparer, String[])
AcceptExistingOnly(Option<DirectoryInfo>)
AcceptExistingOnly(Option<FileInfo>)
AcceptExistingOnly(Option<FileSystemInfo>)
AcceptExistingOnly<T>(Option<T>)
net9.0
namespace System.CommandLine
{
public class Option<T> : Option
{
public Option(string! name, params string![]! aliases);
}
}
| nuget.org | 0.1 % Reference this API |
|---|---|
| .NET | 5.06.07.08.09.010.011.0 |
| .NET Core | 2.02.12.23.03.1 |
| .NET Framework | 4.6.14.6.24.74.7.14.7.24.84.8.1 |
| .NET Standard | 2.02.1 |
Information specific to net9.0 | |
| Assemblies | System.CommandLine , Version=2.0.13.0, PublicKeyToken=31bf3856ad364e35 System.CommandLine , Version=3.0.0.0, PublicKeyToken=31bf3856ad364e35 |
| Referencing | Your project needs a package reference to |
| Package | System.CommandLine (2.0.13) net8.0 |
| Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API