Clean up flags vs envvars

This commit is contained in:
Jakob Borg
2014-10-06 17:55:54 +02:00
parent 9b11609b63
commit 214f18cbfd
3 changed files with 48 additions and 50 deletions

View File

@@ -47,9 +47,8 @@ func usageFor(fs *flag.FlagSet, usage string, extra string) func() {
var opt = " -" + f.Name
if f.DefValue != "false" {
opt += "=" + fmt.Sprintf("%q", f.DefValue)
opt += "=" + fmt.Sprintf(`"%s"`, f.DefValue)
}
options = append(options, []string{opt, f.Usage})
})