-
Notifications
You must be signed in to change notification settings - Fork 1
/
Options.cs
36 lines (29 loc) · 1.15 KB
/
Options.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
using CommandLine;
namespace Lux
{
class Options
{
[Option('v', "verbose", Required = false, HelpText = "Set output to verbose messages.")]
public bool Verbose { get; set; }
}
[Verb("set", HelpText = "Set mode")]
class SetOptions : Options
{
[Option("brightness", Required = false, HelpText = "Brightness value between 0-100")]
public int? Brightness { get; set; }
[Option("contrast", Required = false, HelpText = "Contrast value between 0-100")]
public int? Contrast { get; set; }
[Option("monitor", Required = false, HelpText = "Physical monitor")]
public int MonitorIndex { get; set; }
}
[Verb("get", HelpText = "Get mode")]
class GetOptions : Options
{
[Option("brightness", Required = false, HelpText = "Brightness value between 0-100")]
public bool Brightness { get; set; }
[Option("contrast", Required = false, HelpText = "Contrast value between 0-100")]
public bool Contrast { get; set; }
[Option("monitor", Required = false, HelpText = "Physical monitor")]
public int MonitorIndex { get; set; }
}
}