From ffbbda7b80bf1ab6b9e5b6df03d463bd53d1fea3 Mon Sep 17 00:00:00 2001 From: Usman Saleem Date: Tue, 1 Aug 2023 23:37:18 +1000 Subject: [PATCH] set default value --- .../web3signer/commandline/subcommands/Eth1SubCommand.java | 3 ++- .../web3signer/commandline/subcommands/FilecoinSubCommand.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/commandline/src/main/java/tech/pegasys/web3signer/commandline/subcommands/Eth1SubCommand.java b/commandline/src/main/java/tech/pegasys/web3signer/commandline/subcommands/Eth1SubCommand.java index 72909f030..47f296ab4 100644 --- a/commandline/src/main/java/tech/pegasys/web3signer/commandline/subcommands/Eth1SubCommand.java +++ b/commandline/src/main/java/tech/pegasys/web3signer/commandline/subcommands/Eth1SubCommand.java @@ -219,8 +219,9 @@ public AzureKeyVaultParameters getAzureKeyVaultConfig() { @CommandLine.Option( names = {"--aws-kms-client-cache-size"}, paramLabel = "", + defaultValue = "1", description = - "AWS Kms Client Cache size. Should be set based on different set of credentials and region (default: ${DEFAULT-VALUE})") + "AWS Kms Client cache size. Should be set based on different set of credentials and region (default: ${DEFAULT-VALUE})") public void setAwsKmsClientCacheSize(long awsKmsClientCacheSize) { if (awsKmsClientCacheSize < 1) { throw new CommandLine.ParameterException( diff --git a/commandline/src/main/java/tech/pegasys/web3signer/commandline/subcommands/FilecoinSubCommand.java b/commandline/src/main/java/tech/pegasys/web3signer/commandline/subcommands/FilecoinSubCommand.java index a69abf4d4..cfbd7497e 100644 --- a/commandline/src/main/java/tech/pegasys/web3signer/commandline/subcommands/FilecoinSubCommand.java +++ b/commandline/src/main/java/tech/pegasys/web3signer/commandline/subcommands/FilecoinSubCommand.java @@ -58,8 +58,9 @@ protected void validateArgs() { @CommandLine.Option( names = {"--aws-kms-client-cache-size"}, paramLabel = "", + defaultValue = "1", description = - "AWS Kms Client Cache size. Should be set based on different set of credentials and region (default: ${DEFAULT-VALUE})") + "AWS Kms Client cache size. Should be set based on different set of credentials and region (default: ${DEFAULT-VALUE})") public void setAwsKmsClientCacheSize(long awsKmsClientCacheSize) { if (awsKmsClientCacheSize < 1) { throw new CommandLine.ParameterException(