Update CommonOptions.cs
The additional `app.HelpOption` here prevents the application from displaying help when that option is passed due to the `CommandLineUtils` choking on the duplicated template; also, `PrecompilationApplication` already defines its own `HelpOption` and `Description`.
This commit is contained in:
parent
3369bb6e90
commit
ea461c3b47
|
|
@ -18,9 +18,6 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Precompilation.Design.Internal
|
||||||
|
|
||||||
public void Configure(CommandLineApplication app)
|
public void Configure(CommandLineApplication app)
|
||||||
{
|
{
|
||||||
app.Description = "Precompiles an application.";
|
|
||||||
app.HelpOption("-?|-h|--help");
|
|
||||||
|
|
||||||
ProjectArgument = app.Argument(
|
ProjectArgument = app.Argument(
|
||||||
"project",
|
"project",
|
||||||
"The path to the project (project folder or project.json) with precompilation.");
|
"The path to the project (project folder or project.json) with precompilation.");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue