From a4991c7e1e599c0812dfedfb92a67cc39fe241ca Mon Sep 17 00:00:00 2001 From: Satya Date: Sat, 15 Jun 2024 12:53:48 +0800 Subject: [PATCH] chore: #50 Rename generate new key option --- .../yacicli/commands/localcluster/ClusterCommands.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/commands/localcluster/ClusterCommands.java b/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/commands/localcluster/ClusterCommands.java index bec9b6b..0e685a5 100644 --- a/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/commands/localcluster/ClusterCommands.java +++ b/applications/cli/src/main/java/com/bloxbean/cardano/yacicli/commands/localcluster/ClusterCommands.java @@ -87,8 +87,7 @@ public void createCluster(@ShellOption(value = {"-n", "--name"}, defaultValue = @ShellOption(value = {"--start"}, defaultValue = "false", help = "Automatically start the node after create. default: false") boolean start, @ShellOption(value = {"--era"}, defaultValue = "babbage", help = "Era (babbage, conway)") String era, @ShellOption(value = {"--genesis-profile",}, defaultValue = ShellOption.NULL, help = "Use a pre-defined genesis profile (Options: zero_fee)") GenesisProfile genesisProfile, - @ShellOption(value = {"--generate-new-keys"}, defaultValue = "false", help = "Generate new genesis keys, pool keys instead of default keys") boolean generateNewKeys, - @ShellOption(value = {"--no-genesis-keys"}, defaultValue = "1", help = "No of genesis keys to generate") int nGenesisKeys + @ShellOption(value = {"--generate-new-keys"}, defaultValue = "false", help = "Generate new genesis keys, pool keys instead of default keys") boolean generateNewKeys ) { try { @@ -140,7 +139,7 @@ else if (era.equalsIgnoreCase("conway")) .genesisProfile(genesisProfile) .build(); - boolean success = localClusterService.createNodeClusterFolder(clusterName, clusterInfo, overwrite, generateNewKeys, nGenesisKeys, (msg) -> writeLn(msg)); + boolean success = localClusterService.createNodeClusterFolder(clusterName, clusterInfo, overwrite, generateNewKeys, (msg) -> writeLn(msg)); if (success) { printClusterInfo(clusterName);