public void throwExceptionForBothSourcesSpecified(
      final Map<String, String> environment,
      final CommandLine.ParseResult parseResult,
      final CommandLine commandLine) {
    throw new CommandLine.ParameterException(
        commandLine,
        String.format(
            "Both %s=%s and %s %s specified. Please specify only one.",
            getConfigEnvName(),
            getConfigOptionName(),
            environment.get(getConfigEnvName()),
            parseResult.matchedOption(getConfigOptionName()).stringValues()));
  }
Throws an exception if the configuration resource is specified in both command line options and
environment variables.

@param environment the environment variables
@param parseResult the command line parse result
@param commandLine the command line
app/src/main/java/org/hyperledger/besu/cli/util/AbstractConfigurationFinder.java