public static PluginConfiguration fromCommandLine(final CommandLine commandLine) {
    List<PluginInfo> plugins =
        CommandLineUtils.getOptionValueOrDefault(
            commandLine, DEFAULT_PLUGINS_OPTION_NAME, new PluginInfoConverter());

    boolean externalPluginsEnabled =
        CommandLineUtils.getOptionValueOrDefault(
            commandLine, DEFAULT_PLUGINS_EXTERNAL_ENABLED_OPTION_NAME, Boolean::parseBoolean);

    boolean continueOnPluginError =
        CommandLineUtils.getOptionValueOrDefault(
            commandLine, DEFAULT_CONTINUE_ON_PLUGIN_ERROR_OPTION_NAME, Boolean::parseBoolean);

    return new PluginConfiguration.Builder()
        .requestedPlugins(plugins)
        .externalPluginsEnabled(externalPluginsEnabled)
        .continueOnPluginError(continueOnPluginError)
        .build();
  }
Constructs a {@link PluginConfiguration} instance based on the command line options.

@param commandLine The command line instance containing parsed options.
@return A new {@link PluginConfiguration} instance.
app/src/main/java/org/hyperledger/besu/cli/options/PluginsConfigurationOptions.java