OptionStyle Class

Defines styles for specifying options or flags in a command.
public sealed class OptionStyle

Properties

Style DefaultValue
Gets or sets the style for default values in the options.
Style DefaultValueHeader
Gets or sets the style for the header of default values in the options.
Style Header
Gets or sets the style for the header in the options.
Style OptionalOptionValue
Gets or sets the style for optional options.
Style RequiredOption
Gets or sets the style for required options.
Style RequiredOptionValue
Gets or sets the style for required option values.

Extension Methods

T And<OptionStyle>(Action<OptionStyle>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.