Log when a new config file is created (#33)
This commit is contained in:
parent
fff8132b13
commit
702aef3ce6
@ -191,6 +191,7 @@ func loadConfig() (*config, error) {
|
||||
// Create a default config file when one does not exist and the user did
|
||||
// not specify an override.
|
||||
if preCfg.ConfigFile == defaultConfigFile && !fileExists(preCfg.ConfigFile) {
|
||||
fmt.Printf("Writing a config file with default values to %s\n", defaultConfigFile)
|
||||
preIni := flags.NewIniParser(preParser)
|
||||
err = preIni.WriteFile(preCfg.ConfigFile,
|
||||
flags.IniIncludeComments|flags.IniIncludeDefaults)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user