-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathOptions.cs
More file actions
41 lines (31 loc) · 1.41 KB
/
Options.cs
File metadata and controls
41 lines (31 loc) · 1.41 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
using CommandLine;
using CommandLine.Text;
namespace SharpDiff
{
class Options
{
[Option('f', "file", Required = true, HelpText = "Path to the diff file")]
public string DiffFile { get; set; }
[Option("word-output", HelpText = "Path to the Word Output file")]
public string WordOutput { get; set; }
[Option("html-output", HelpText = "Path to the HTML Output file")]
public string HtmlOutput { get; set; }
[Option("deleted-contents", DefaultValue = false, HelpText = "Show all of the lines from a deleted file")]
public bool ShowDeleteFileContents { get; set; }
[Option("created-contents", DefaultValue = false, HelpText = "Show all of the lines from a newly created file")]
public bool ShowCreatedFileContents { get; set; }
[Option('v', "verbose", DefaultValue = false, HelpText = "Prints all messages to standard output.")]
public bool Verbose { get; set; }
[Option('t', "title", HelpText = "Header title")]
public string Title { get; set; }
[Option('s', "summary", HelpText = "Sumary text")]
public string Summary { get; set; }
[ParserState]
public IParserState LastParserState { get; set; }
[HelpOption]
public string GetUsage()
{
return HelpText.AutoBuild(this, text => HelpText.DefaultParsingErrorsHandler(this, text));
}
}
}