CommandArgumentAttribute(int, string) Constructor
Initializes a new instance of the
CommandArgumentAttribute
class.
public CommandArgumentAttribute(int position, string template)
- Namespace
- Spectre
.Console .Cli - Containing Type
- Command
Argument Attribute
Parameters
- int position
- The argument position.
- string template
- The argument template. Wrap in <> for required arguments, [] for optional ones. For example "[MyArgument]".