Browse Source

Add short parameter of `WithoutContracts`.

pull/14429/head
maliming 3 years ago
parent
commit
719ac4bfc6
No known key found for this signature in database GPG Key ID: 96224957E51C89E
  1. 3
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProxyCommandBase.cs

3
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/ProxyCommandBase.cs

@ -68,7 +68,7 @@ public abstract class ProxyCommandBase<T> : 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<T> : IConsoleCommand, ITransientDependenc
public static class WithoutContracts
{
public const string Short = "c";
public const string Long = "without-contracts";
}
}

Loading…
Cancel
Save