Support printing output with usage flag too

This commit is contained in:
Cameron Sparr
2015-10-22 14:24:51 -06:00
parent 2007064c47
commit ae7ad2230f
2 changed files with 21 additions and 4 deletions

View File

@@ -62,7 +62,9 @@ func main() {
if *fUsage != "" {
if err := telegraf.PrintPluginConfig(*fUsage); err != nil {
log.Fatal(err)
if err2 := telegraf.PrintOutputConfig(*fUsage); err2 != nil {
log.Fatalf("%s and %s", err, err2)
}
}
return
}