-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathProgramOptions.cs
26 lines (19 loc) · 923 Bytes
/
ProgramOptions.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
using CommandLine;
namespace VaoCSharpDemo
{
public class ProgramOptions
{
[Option('s', "secure", Required = false, HelpText = "Use secure connection.")]
public bool UseHttps { get; set; } = false;
[Option('p', "password", Required = true, HelpText = "Password used to connect.")]
public string Password { get; set; }
[Option('u', "user", Required = true, HelpText = "User used to connect.")]
public string User { get; set; }
[Option('h', "host", Required = true, HelpText = "Host/IP to connect to.")]
public string Host { get; set; }
[Option('t', "port", Required = false, HelpText = "Port to connect to (Default port: 444).")]
public int Port { get; set; } = 444;
[Option('i', "ignoreCert", Required = false, HelpText = "Ignore certificate errors (Default: false).")]
public bool IgnoreCertificateErrors { get; set; } = false;
}
}