-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOptions.cs
More file actions
33 lines (25 loc) · 768 Bytes
/
Copy pathOptions.cs
File metadata and controls
33 lines (25 loc) · 768 Bytes
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
using CommandLine;
namespace VSCode2Msi;
internal class Options
{
#if DEBUG
private const bool Debug = true;
#else
private const bool Debug = false;
#endif
[Option('a', "archive", HelpText = "Path to VSCode archive, can be url or local path")]
public string? ArchivePath { get; set; }
[Option('o', "output", HelpText = "Path to output MSI file")]
public string? OutputPath { get; set; }
[Option("nologo", Default = false, HelpText = "Don't display copyright")]
public bool NoLogo { get; set; }
[Option('v', "verbose", Default = Debug, HelpText = "Verbose output")]
public bool Verbose { get; set; }
public void IfVerbose(Action action)
{
if (Verbose)
{
action();
}
}
}