Don't display the default data directory in --help output because if it is too long, it causes Picocli to enter an infinite loop. (#148)

Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
pull/2/head
Adrian Sutton 6 years ago committed by GitHub
parent 0fdd508b29
commit ea1c2b57e6
  1. 2
      pantheon/src/main/java/tech/pegasys/pantheon/cli/PantheonCommand.java
  2. 1
      pantheon/src/test/java/tech/pegasys/pantheon/cli/PantheonCommandTest.java

@ -142,7 +142,7 @@ public class PantheonCommand implements Runnable {
@Option(
names = {"--datadir"},
paramLabel = MANDATORY_PATH_FORMAT_HELP,
description = "the path to Pantheon data directory (default: ${DEFAULT-VALUE})"
description = "the path to Pantheon data directory"
)
private final Path dataDir = getDefaultPantheonDataDir();

@ -60,7 +60,6 @@ import org.junit.rules.TemporaryFolder;
import org.mockito.ArgumentCaptor;
import org.mockito.ArgumentMatchers;
@Ignore("temporarily ignored because tests hang if working dir path too long")
public class PantheonCommandTest extends CommandTestAbstract {
@Rule public final TemporaryFolder temp = new TemporaryFolder();

Loading…
Cancel
Save