Feature gate is not stable sorted - docs change each gen

pull/6/head
Clayton Coleman 2016-09-06 23:36:01 -04:00
parent 3e2ce45995
commit 4189062a03
No known key found for this signature in database
GPG Key ID: 3D16906B4F1C5CB3
1 changed files with 1 additions and 0 deletions

View File

@ -216,6 +216,7 @@ func (f *featureGate) AddFlag(fs *pflag.FlagSet) {
}
known = append(known, fmt.Sprintf("%s=true|false (%sdefault=%t)", k, pre, v.enabled))
}
sort.Strings(known)
fs.Var(f, flagName, ""+
"A set of key=value pairs that describe feature gates for alpha/experimental features. "+
"Options are:\n"+strings.Join(known, "\n"))