forked from pedropombeiro/FactoryGenerator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CommandLineOptions.cs
41 lines (30 loc) · 1.45 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
namespace DeveloperInTheFlow.FactoryGenerator
{
using CommandLine;
using CommandLine.Text;
public class CommandLineOptions
{
#region Public Properties
[Option('a', "attribute-import-list", Required = false, HelpText = "Attributes to import", DefaultValue = "")]
public string AttributeImportList { get; set; }
[Option("teamcity-output", Required = false, HelpText = "Enable TeamCity output", DefaultValue = false)]
public bool EnableTeamCityOutput { get; set; }
[ParserState]
public IParserState LastParserState { get; set; }
[Option('s', "solution", Required = true, HelpText = "The path to the solution file to process")]
public string SolutionPath { get; set; }
[Option('t', "templatePath", Required = false, HelpText = "The path of the template that will be used for generating factories.", DefaultValue = "DefaultTemplate.render")]
public string TemplatePath { get; set; }
[Option('d', "doc", Required = false, HelpText = "Import XML documentation into generated factories", DefaultValue = false)]
public bool WriteXmlDoc { get; set; }
#endregion
#region Public Methods and Operators
[HelpOption]
public string GetUsage()
{
return HelpText.AutoBuild(this,
current => HelpText.DefaultParsingErrorsHandler(this, current));
}
#endregion
}
}