-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfigurationOptions.cs
More file actions
61 lines (55 loc) · 1.72 KB
/
Copy pathConfigurationOptions.cs
File metadata and controls
61 lines (55 loc) · 1.72 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
using System.Collections.Generic;
using System.Linq;
using CommandLine;
namespace CreateAR.Snap
{
/// <summary>
/// Command line options.
/// </summary>
public class ConfigurationOptions
{
/// <summary>
/// Trellis url.
/// </summary>
[Option('u', "url",
Default = "https://trellis.enklu.com:10001",
HelpText = "Trellis URL. Defaults to cloud install.")]
public string Url { get; set; }
/// <summary>
/// Organization id.
/// </summary>
[Option('o', "org",
Required = true,
HelpText = "Organization id.")]
public string OrgId { get; set; }
/// <summary>
/// JWT.
/// </summary>
[Option('t', "token",
Required = true,
HelpText = "Valid token.")]
public string Token { get; set; }
/// <summary>
/// Token for loggly.
/// </summary>
/// <value></value>
[Option('l', "loggly",
Required = true,
HelpText = "Loggly token.")]
public string LogglyToken { get; set; }
/// <summary>
/// Dimensions of the screen to cut out.
/// </summary>
/// <value></value>
[Option('d', "dimensions",
Required = true,
Separator = ',',
HelpText = "X, Y, Width, Height of cutout.")]
public IEnumerable<int> Dimensions { get; set; }
/// <inheritdoc />
override public string ToString()
{
return $"[ConfigurationOptions Url={Url}, OrgId={OrgId}, Dimensions={Dimensions.ElementAt(0)},{Dimensions.ElementAt(1)},{Dimensions.ElementAt(2)},{Dimensions.ElementAt(3)}]";
}
}
}