forked from microsoft/TemplateStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommandLineOptions.cs
30 lines (24 loc) · 1.11 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
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using CommandLine;
using CommandLine.Text;
namespace Microsoft.Templates.VsEmulator
{
public class CommandLineOptions
{
[Option('c', "culture", Required = true, HelpText = "Specify a culture. e.g. en-US")]
public string Culture { get; set; }
[Option('l', "proglang", Required = true, HelpText = "C# or VisualBasic")]
public string ProgLang { get; set; }
[Option('n', "projectName", DefaultValue = "", Required = false, HelpText = "A random value will be generated if none provided")]
public string ProjectName { get; set; }
[Option('u', "ui", DefaultValue = "Project", Required = false, HelpText = "Project, Page, or Feature. ")]
public string UI { get; set; }
[HelpOption]
public string GetUsage()
{
return HelpText.AutoBuild(this, current => HelpText.DefaultParsingErrorsHandler(this, current));
}
}
}