Update output format so that it matches actual accepted values

This commit is contained in:
Maciej Szulik 2018-07-02 13:35:31 +02:00
parent 7496c64b46
commit 972f1444c5
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4

View File

@ -97,7 +97,7 @@ func (f *PrintFlags) AddFlags(cmd *cobra.Command) {
f.NamePrintFlags.AddFlags(cmd)
if f.OutputFormat != nil {
cmd.Flags().StringVarP(f.OutputFormat, "output", "o", *f.OutputFormat, "Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See custom columns [http://kubernetes.io/docs/user-guide/kubectl-overview/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://kubernetes.io/docs/user-guide/jsonpath].")
cmd.Flags().StringVarP(f.OutputFormat, "output", "o", *f.OutputFormat, fmt.Sprintf("Output format. One of: %s.", strings.Join(f.AllowedFormats(), "|")))
}
}