-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIOptionAttribute.cs
More file actions
46 lines (45 loc) · 1.28 KB
/
IOptionAttribute.cs
File metadata and controls
46 lines (45 loc) · 1.28 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
namespace WhoisNET.Client.CmdOptions
{
/// <summary>
/// Interface that manages the tokenization of command line arguments.
/// </summary>
public interface IOptionAttribute
{
/// <summary>
/// Name of the option
/// </summary>
string? Name { get; set; }
/// <summary>
/// Short name of the option
/// </summary>
string? ShortName { get; set; }
/// <summary>
/// Expected Value of the option
/// </summary>
string? ExpectedValue { get; set; }
/// <summary>
/// Description of the option
/// </summary>
string? Description { get; set; }
/// <summary>
/// Option name as an enum
/// </summary>
OptionEnum OptionName { get; set; }
/// <summary>
/// Denotes if the option is a flag (true/false)
/// </summary>
bool IsFlag { get; set; }
/// <summary>
/// Indicates if it's an unknown option
/// </summary>
bool UnknownOption { get; set; }
/// <summary>
/// Type of the value
/// </summary>
Type? ValueType { get; set; }
/// <summary>
/// Value of the option
/// </summary>
object? Value { get; set; }
}
}