-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCommandLineOptions.cs
53 lines (39 loc) · 2.02 KB
/
CommandLineOptions.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CommandLine;
namespace CLARiNET
{
public class Options
{
[Value(index: 0, MetaName = "Command", Required = false, HelpText = "CLARiNET Commands:\n\n" + CLARiNET.Commands.COMMAND_LIST)]
public string Command { get; set; }
[Value(index: 1, MetaName = "File or Directory", Required = false, HelpText = "Path or Path and file name")]
public string Path { get; set; }
[Value(index: 2, MetaName = "Parameters", Required = false, HelpText = "Parameters for the command (For CLAR_UPLOAD and CLAR_DOWNLOAD, enter the Cloud Collection)")]
public string Parameters { get; set; }
[Value(index: 3, MetaName = "Environment Number", Required = false, HelpText = "Number associated with a Workday environment (list all with -w parameter)")]
public string EnvNum { get; set; }
[Value(index: 4, MetaName = "Tenant", Required = false, HelpText = "Workday Tenant")]
public string Tenant { get; set; }
[Value(index: 5, MetaName = "Username", Required = false, HelpText = "Username")]
public string Username { get; set; }
[Value(index: 6, MetaName = "Password", Required = false, HelpText = "Password (must be encrypted using the -e option)")]
public string Password { get; set; }
[Option('c', "commandline", Required = false,
HelpText =
"Display the commandline and exit without executing the commands.")]
public bool PrintCommandline { get; set; }
[Option('e', "encrypt", Required = false,
HelpText =
"Encrypt a password for use on the command line")]
public bool Encrypt { get; set; }
[Option('w', "wdenvironments", Required = false,
HelpText =
"Display the Workday environments and their associated numbers")]
public bool PrintEnvironments { get; set; }
}
}