ICommandParameter Interface
Represents a command parameter.
public interface ICommandParameter
- Namespace
- Spectre
.Console .Cli .Help - Implementing Types
Properties
- abstract DefaultValueAttribute DefaultValue
- Gets the default value of the parameter, if specified.
- abstract string Description
- Gets the description of the parameter.
- abstract bool IsFlag
- Gets a value indicating whether the parameter is a flag.
- abstract bool IsHidden
- Gets a value indicating whether the parameter is hidden.
- abstract bool IsRequired
- Gets a value indicating whether the parameter is required.
Extension Methods
-
T And
< I Command Parameter> (Action < I Command Parameter> ) - 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.