Fix -genconf

This commit is contained in:
Neil Alexander 2022-02-16 22:50:19 +00:00
parent d2200a3812
commit fd1843ca72
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -80,7 +80,7 @@ func main() {
}
case args.GenConf:
// Generate a new configuration and print it to stdout.
fmt.Println(config.GenerateConfigJSON(args.ConfJSON))
fmt.Printf("%s\n", config.GenerateConfigJSON(args.ConfJSON))
return
default:
// No flags were provided, therefore print the list of flags to stdout.