Edit

Share via


OptionExtensions Class

Definition

Provides extension methods for Option.

public ref class OptionExtensions abstract sealed
public static class OptionExtensions
type OptionExtensions = class
Public Module OptionExtensions
Inheritance
OptionExtensions

Methods

AddCompletions<TOption>(TOption, CompletionDelegate)

Adds completions for an option.

AddCompletions<TOption>(TOption, Func<CompletionContext,IEnumerable<String>>)

Adds completions for an option.

AddCompletions<TOption>(TOption, String[])

Adds completions for an option.

ExistingOnly(Option<DirectoryInfo>)

Configures an option to accept only values corresponding to an existing directory.

ExistingOnly(Option<FileInfo>)

Configures an option to accept only values corresponding to an existing file.

ExistingOnly(Option<FileSystemInfo>)

Configures an option to accept only values corresponding to an existing file or directory.

ExistingOnly<T>(Option<T>)

Configures an option to accept only values corresponding to a existing files or directories.

FromAmong<TOption>(TOption, String[])

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

LegalFileNamesOnly<TOption>(TOption)

Configures an option to accept only values representing legal file names.

LegalFilePathsOnly<TOption>(TOption)

Configures an option to accept only values representing legal file paths.

Parse(Option, String)

Parses a command line string value using an option.

Parse(Option, String[])

Parses a command line string value using an option.

Applies to