BadScript 2
Loading...
Searching...
No Matches
Simple_Options_With_Required_OptionGroup.cs
Go to the documentation of this file.
2{
4 {
5 [Option(HelpText = "Define a string value here.", Required = true, Group = "string-group")]
6 public string StringValue { get; set; }
7
8 [Option('s', "shortandlong", HelpText = "Example with both short and long name.", Required = true, Group = "string-group")]
9 public string ShortAndLong { get; set; }
10
11 [Option('x', HelpText = "Define a boolean or switch value here.")]
12 public bool BoolValue { get; set; }
13 }
14}