CommandArgumentAttribute Class
    An attribute representing a command argument.
    
        [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
public sealed class CommandArgumentAttribute : Attribute- Namespace
- Spectre.Console .Cli 
- Base Types
- 
                                - Attribute
 
Attributes
- 
                                AttributeUsage Attribute 
Constructors
- 
                                 CommandArgument Attribute (int, string) 
- 
    Initializes a new instance of the CommandArgumentAttributeclass.
Properties
- bool IsRequired
- Gets a value indicating whether the argument is required.
- int Position
- Gets the argument position.
- string ValueName
- Gets the value name of the argument.
Extension Methods
- 
                                 T And< Command Argument Attribute> (Action < Command Argument Attribute> ) 
- 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.
See Also
- System.Attribute