Quote default flag parameters

This commit is contained in:
Jakob Borg 2014-05-15 00:42:40 -03:00
parent ba58e95f6b
commit 68afc897d6
1 changed files with 1 additions and 1 deletions

View File

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