Minor CLI fixes (#802)

* Native feature flags should have been hidden by default
* GraphQL option warnings keyed off of wrong enabled option.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
pull/812/head
Danno Ferrin 5 years ago committed by GitHub
parent 60c3a5cc18
commit 0cf6bd9aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      besu/src/main/java/org/hyperledger/besu/cli/BesuCommand.java

@ -866,12 +866,14 @@ public class BesuCommand implements DefaultCommandValues, Runnable {
private final Path pidPath = null;
@CommandLine.Option(
hidden = true,
names = {"--Xsecp256k1-native-enabled"},
description = "Path to PID file (optional)",
arity = "1")
private final Boolean nativeSecp256k1 = Boolean.TRUE;
@CommandLine.Option(
hidden = true,
names = {"--Xaltbn128-native-enabled"},
description = "Path to PID file (optional)",
arity = "1")
@ -1320,7 +1322,7 @@ public class BesuCommand implements DefaultCommandValues, Runnable {
logger,
commandLine,
"--graphql-http-enabled",
!isRpcHttpEnabled,
!isGraphQLHttpEnabled,
asList("--graphql-http-cors-origins", "--graphql-http-host", "--graphql-http-port"));
final GraphQLConfiguration graphQLConfiguration = GraphQLConfiguration.createDefault();

Loading…
Cancel
Save