From ea461c3b4796f3b0c02dc8a5a982e3e4c35c16b4 Mon Sep 17 00:00:00 2001 From: Derek Gray Date: Wed, 24 Aug 2016 12:03:38 -0500 Subject: [PATCH] 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`. --- .../Internal/CommonOptions.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.Precompilation.Design/Internal/CommonOptions.cs b/src/Microsoft.AspNetCore.Mvc.Razor.Precompilation.Design/Internal/CommonOptions.cs index 9540724a97..60a26335ec 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.Precompilation.Design/Internal/CommonOptions.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.Precompilation.Design/Internal/CommonOptions.cs @@ -18,9 +18,6 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Precompilation.Design.Internal public void Configure(CommandLineApplication app) { - app.Description = "Precompiles an application."; - app.HelpOption("-?|-h|--help"); - ProjectArgument = app.Argument( "project", "The path to the project (project folder or project.json) with precompilation.");