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
-
Attribute
Usage Attribute
Constructors
-
Command
Argument Attribute (int, string) -
Initializes a new instance of the
CommandArgumentAttribute
class.
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.
See Also
- System.Attribute