CommandOptionAttribute(string, bool) Constructor
Initializes a new instance of the
CommandOptionAttribute
class.
public CommandOptionAttribute(string template, bool isRequired = false)
- Namespace
- Spectre
.Console .Cli - Containing Type
- Command
Option Attribute
Parameters
- string template
- The option template.
- bool isRequired
- Indicates whether the option is required or not.