BadScript 2
Loading...
Searching...
No Matches
Simple_Options_With_Multiple_OptionGroups.cs
Go to the documentation of this file.
1using System.Collections.Generic;
2
4{
6 {
7 [Option(HelpText = "Define a string value here.", Group = "string-group")]
8 public string StringValue { get; set; }
9
10 [Option('s', "shortandlong", HelpText = "Example with both short and long name.", Group = "string-group")]
11 public string ShortAndLong { get; set; }
12
13 [Option('x', HelpText = "Define a boolean or switch value here.", Group = "second-group")]
14 public bool BoolValue { get; set; }
15
16 [Option('i', Min = 3, Max = 4, HelpText = "Define a int sequence here.", Group = "second-group")]
17 public IEnumerable<int> IntSequence { get; set; }
18 }
19}