BadScript 2
Loading...
Searching...
No Matches
Options_With_HelpText_And_MetaValue.cs
Go to the documentation of this file.
1// Copyright 2005-2015 Giacomo Stelluti Scala & Contributors. All rights reserved. See License.md in the project root for license information.
2
3using System.Collections.Generic;
4
6{
8 {
9 [Option(
10 MetaValue = "STR",
11 HelpText = "Define a string value here.")]
12 public string StringValue { get; set; }
13
14 [Option('i', Min = 3, Max = 4,
15 MetaValue = "INTSEQ",
16 HelpText = "Define a int sequence here.")]
17 public IEnumerable<int> IntSequence { get; set; }
18
19 [Option('x',
20 HelpText = "Define a boolean or switch value here.")]
21 public bool BoolValue { get; set; }
22
23 [Value(0,
24 MetaName = "number",
25 MetaValue = "NUM",
26 HelpText = "Define a long value here.")]
27 public long LongValue { get; set; }
28
29 [Value(1,
30 MetaName = "paintcolor",
31 MetaValue = "COLOR",
32 HelpText = "Define a color value here.")]
33 public Colors ColorValue { get; set; }
34 }
35}