Skip to content
Snippets Groups Projects
Commit 98ac2561 authored by Luca Moser's avatar Luca Moser
Browse files

show again enabled/disabled plugins when using --help flag

parent 125fb845
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,6 @@ import ( ...@@ -7,7 +7,6 @@ import (
"sort" "sort"
"strings" "strings"
"github.com/iotaledger/hive.go/parameter"
flag "github.com/spf13/pflag" flag "github.com/spf13/pflag"
"github.com/iotaledger/goshimmer/packages/node" "github.com/iotaledger/goshimmer/packages/node"
...@@ -43,6 +42,7 @@ func printUsage() { ...@@ -43,6 +42,7 @@ func printUsage() {
) )
flag.PrintDefaults() flag.PrintDefaults()
fmt.Fprintf(os.Stderr, "\nThe following plugins are enabled: %s\n", getList(parameter.NodeConfig.GetStringSlice(node.CFG_ENABLE_PLGUINS))) fmt.Fprintf(os.Stderr, "\nThe following plugins are enabled by default and can be disabled with -%s:\n %s\n", node.CFG_DISABLE_PLUGINS, getList(enabledPlugins))
fmt.Fprintf(os.Stderr, "\nThe following plugins are disabled: %s\n", getList(parameter.NodeConfig.GetStringSlice(node.CFG_DISABLE_PLUGINS))) fmt.Fprintf(os.Stderr, "The following plugins are disabled by default and can be enabled with -%s:\n %s\n", node.CFG_ENABLE_PLGUINS, getList(disabledPlugins))
fmt.Fprintf(os.Stderr, "The enabled/disabled plugins can be overriden by altering %s/%s inside config.json\n\n", node.CFG_ENABLE_PLGUINS, node.CFG_DISABLE_PLUGINS)
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment