Skip to content
Snippets Groups Projects
Commit b5269834 authored by capossele's avatar capossele
Browse files

:bug: fixes flag parsing before loading config file

parent 6e1eb113
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ func init() {
// It automatically reads in a single config file starting with "config" (can be changed via the --config CLI flag)
// and ending with: .json, .toml, .yaml or .yml (in this sequence).
func FetchConfig(printConfig bool, ignoreSettingsAtPrint ...[]string) error {
flag.Parse()
err := parameter.LoadConfigFile(NodeConfig, *configDirPath, *configName, true, false)
if err != nil {
return err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment