BadScript 2
Loading...
Searching...
No Matches
Simple_Options.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{
7 public class Simple_Options
8 {
9 [Option(HelpText = "Define a string value here.")]
10 public string StringValue { get; set; }
11
12 [Option('s', "shortandlong", HelpText = "Example with both short and long name.")]
13 public string ShortAndLong { get; set; }
14
15 [Option('i', Min = 3, Max = 4, HelpText = "Define a int sequence here.")]
16 public IEnumerable<int> IntSequence { get; set; }
17
18 [Option('x', HelpText = "Define a boolean or switch value here.")]
19 public bool BoolValue { get; set; }
20
21 [Value(0, HelpText = "Define a long value here.")]
22 public long LongValue { get; set; }
23 }
24}