From 775055aaf86e42d94c7dfbc611fabf17c5c4b609 Mon Sep 17 00:00:00 2001 From: Yunus Emre Kalkan Date: Mon, 22 Mar 2021 13:16:09 +0300 Subject: [PATCH] Update AddModuleCommand.cs --- .../Volo/Abp/Cli/Commands/AddModuleCommand.cs | 7 +------ 1 file changed, 1 insertion(+), 6 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 a2c47af69b..e276da7b50 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,16 +38,11 @@ namespace Volo.Abp.Cli.Commands } var newTemplate = commandLineArgs.Options.ContainsKey(Options.NewTemplate.Long); - var template = commandLineArgs.Options.GetOrNull(Options.Template.Short, Options.Template.Long); var newProTemplate = !string.IsNullOrEmpty(template) && template == ModuleProTemplate.TemplateName; - var withSourceCode = newTemplate || newProTemplate || commandLineArgs.Options.ContainsKey(Options.SourceCode.Long); var addSourceCodeToSolutionFile = withSourceCode && commandLineArgs.Options.ContainsKey("add-to-solution-file"); - - var skipDbMigrations = newTemplate || newProTemplate || Convert.ToBoolean( - commandLineArgs.Options.GetOrNull(Options.DbMigrations.Skip) ?? "false"); - + var skipDbMigrations = newTemplate || newProTemplate || Convert.ToBoolean(commandLineArgs.Options.GetOrNull(Options.DbMigrations.Skip) ?? "false"); var solutionFile = GetSolutionFile(commandLineArgs); var version = commandLineArgs.Options.GetOrNull(Options.Version.Short, Options.Version.Long);