Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

[PAN-2803] Update generate-blockchain-config CLI help #1587

Merged
merged 2 commits into from
Jun 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public interface DefaultCommandValues {

String MANDATORY_PATH_FORMAT_HELP = "<PATH>";
String MANDATORY_FILE_FORMAT_HELP = "<FILE>";
String MANDATORY_DIRECTORY_FORMAT_HELP = "<DIRECTORY>";
String PANTHEON_HOME_PROPERTY_NAME = "pantheon.home";
String DEFAULT_DATA_DIR_PATH = "./build/data";
String MANDATORY_INTEGER_FORMAT_HELP = "<INTEGER>";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import static com.google.common.base.Preconditions.checkNotNull;
import static java.nio.charset.StandardCharsets.UTF_8;
import static tech.pegasys.pantheon.cli.DefaultCommandValues.MANDATORY_DIRECTORY_FORMAT_HELP;
import static tech.pegasys.pantheon.cli.DefaultCommandValues.MANDATORY_FILE_FORMAT_HELP;
import static tech.pegasys.pantheon.cli.DefaultCommandValues.MANDATORY_PATH_FORMAT_HELP;
import static tech.pegasys.pantheon.cli.operator.OperatorSubCommand.COMMAND_NAME;
Expand Down Expand Up @@ -83,7 +84,8 @@ public void run() {

@Command(
name = "generate-blockchain-config",
description = "This command generates blockchain network configuration files.",
description =
"This command generates node keypairs, genesis file (with RLP encoded IBFT 2.0 extra data).",
mixinStandardHelpOptions = true)
static class GenerateNetworkConfigSubCommand implements Runnable {
@Option(
Expand All @@ -97,7 +99,7 @@ static class GenerateNetworkConfigSubCommand implements Runnable {
@Option(
required = true,
names = "--to",
paramLabel = MANDATORY_FILE_FORMAT_HELP,
paramLabel = MANDATORY_DIRECTORY_FORMAT_HELP,
description = "Directory to write output files to.",
arity = "1..1")
private File outputDirectory = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public class OperatorSubCommandTest extends CommandTestAbstract {
+ System.lineSeparator()
+ "Commands:"
+ System.lineSeparator()
+ " generate-blockchain-config This command generates blockchain network"
+ " generate-blockchain-config This command generates node keypairs, genesis"
+ System.lineSeparator()
+ " configuration files.";
+ " file (with RLP encoded IBFT 2.0 extra data).";

private Path tmpOutputDirectoryPath;

Expand Down