From 4b62d770d4cb449c3ad2f1271d4955e99d3e8a25 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 1 Nov 2022 09:35:04 +0800 Subject: [PATCH] Update ProxyCommandBase.cs --- .../Volo/Abp/Cli/Commands/ProxyCommandBase.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProxyCommandBase.cs b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProxyCommandBase.cs index cf77697d7b..5efae62b90 100644 --- a/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProxyCommandBase.cs +++ b/framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProxyCommandBase.cs @@ -68,7 +68,8 @@ public abstract class ProxyCommandBase : IConsoleCommand, ITransientDependenc var source = commandLineArgs.Options.GetOrNull(Options.Source.Short, Options.Source.Long); var workDirectory = commandLineArgs.Options.GetOrNull(Options.WorkDirectory.Short, Options.WorkDirectory.Long) ?? Directory.GetCurrentDirectory(); var folder = commandLineArgs.Options.GetOrNull(Options.Folder.Long); - var withoutContracts = commandLineArgs.Options.ContainsKey(Options.WithoutContracts.Short, Options.WithoutContracts.Long); + var withoutContracts = commandLineArgs.Options.ContainsKey(Options.WithoutContracts.Short) || + commandLineArgs.Options.ContainsKey(Options.WithoutContracts.Long); return new GenerateProxyArgs(CommandName, workDirectory, module, url, output, target, apiName, source, folder, withoutContracts, commandLineArgs.Options); }