From e65a349c8a53f75c7fd6554fc4a3a76b5c4e8bd8 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Tue, 10 Nov 2020 14:35:19 +0300 Subject: [PATCH] Update AddModuleCommand.cs --- .../Volo/Abp/Cli/Commands/AddModuleCommand.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/AddModuleCommand.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/AddModuleCommand.cs index fee803137e..9b6c9a4ea2 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/AddModuleCommand.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/AddModuleCommand.cs @@ -38,8 +38,8 @@ namespace Volo.Abp.Cli.Commands var newTemplate = commandLineArgs.Options.ContainsKey(Options.NewTemplate.Long); - var newProTemplateOption = commandLineArgs.Options.GetOrNull(Options.NewProTemplate.Short, Options.NewProTemplate.Long); - var newProTemplate = !string.IsNullOrEmpty(newProTemplateOption) && newProTemplateOption == "module-pro"; + var template = commandLineArgs.Options.GetOrNull(Options.Template.Short, Options.Template.Long); + var newProTemplate = !string.IsNullOrEmpty(template) && template == "module-pro"; var withSourceCode = newTemplate || newProTemplate || commandLineArgs.Options.ContainsKey(Options.SourceCode.Long); var addSourceCodeToSolutionFile = withSourceCode && commandLineArgs.Options.ContainsKey("add-to-solution-file"); @@ -182,7 +182,7 @@ namespace Volo.Abp.Cli.Commands public const string Long = "new"; } - public class NewProTemplate + public class Template { public const string Short = "t"; public const string Long = "template";