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)

Adrian Sutton 6 years ago committed by GitHub
parent 77a3df36ae
commit f79ca8814e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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( @Option(
names = {"--datadir"}, names = {"--datadir"},
paramLabel = MANDATORY_PATH_FORMAT_HELP, 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(); private final Path dataDir = getDefaultPantheonDataDir();

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

Loading…
Cancel
Save