This repository was archived by the owner on Jul 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 243
Expand file tree
/
Copy pathCommandLineOptions.cs
More file actions
62 lines (57 loc) · 2.21 KB
/
CommandLineOptions.cs
File metadata and controls
62 lines (57 loc) · 2.21 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
62
using System.Collections.Immutable;
namespace CodeFormatter
{
public sealed class CommandLineOptions
{
public static readonly CommandLineOptions ListRules = new CommandLineOptions(
Operation.ListRules,
ImmutableArray<string[]>.Empty,
ImmutableArray<string>.Empty,
ImmutableDictionary<string, bool>.Empty,
ImmutableArray<string>.Empty,
ImmutableArray<string>.Empty,
null,
allowTables: false,
verbose: false);
public static readonly CommandLineOptions ShowHelp = new CommandLineOptions(
Operation.ShowHelp,
ImmutableArray<string[]>.Empty,
ImmutableArray<string>.Empty,
ImmutableDictionary<string, bool>.Empty,
ImmutableArray<string>.Empty,
ImmutableArray<string>.Empty,
null,
allowTables: false,
verbose: false);
public readonly Operation Operation;
public readonly ImmutableArray<string[]> PreprocessorConfigurations;
public readonly ImmutableArray<string> CopyrightHeader;
public readonly ImmutableDictionary<string, bool> RuleMap;
public readonly ImmutableArray<string> FormatTargets;
public readonly ImmutableArray<string> FileNames;
public readonly string Language;
public readonly bool AllowTables;
public readonly bool Verbose;
public CommandLineOptions(
Operation operation,
ImmutableArray<string[]> preprocessorConfigurations,
ImmutableArray<string> copyrightHeader,
ImmutableDictionary<string, bool> ruleMap,
ImmutableArray<string> formatTargets,
ImmutableArray<string> fileNames,
string language,
bool allowTables,
bool verbose)
{
Operation = operation;
PreprocessorConfigurations = preprocessorConfigurations;
CopyrightHeader = copyrightHeader;
RuleMap = ruleMap;
FileNames = fileNames;
FormatTargets = formatTargets;
Language = language;
AllowTables = allowTables;
Verbose = verbose;
}
}
}