From 719ac4bfc6ea0849ea004998994671341fa72ef3 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 1 Nov 2022 09:22:32 +0800 Subject: [PATCH] Add short parameter of `WithoutContracts`. --- .../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 ac243359c0..cf77697d7b 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,7 @@ 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.Long); + var withoutContracts = commandLineArgs.Options.ContainsKey(Options.WithoutContracts.Short, Options.WithoutContracts.Long); return new GenerateProxyArgs(CommandName, workDirectory, module, url, output, target, apiName, source, folder, withoutContracts, commandLineArgs.Options); } @@ -166,6 +166,7 @@ public abstract class ProxyCommandBase : IConsoleCommand, ITransientDependenc public static class WithoutContracts { + public const string Short = "c"; public const string Long = "without-contracts"; } }