// AddFlags receives a *cobra.Command reference and binds
// flags related to humanreadable and template printing.
func(f*PrintFlags)AddFlags(cmd*cobra.Command){
f.JSONYamlPrintFlags.AddFlags(cmd)
f.NamePrintFlags.AddFlags(cmd)
f.TemplateFlags.AddFlags(cmd)
f.HumanReadableFlags.AddFlags(cmd)
f.CustomColumnsFlags.AddFlags(cmd)
iff.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].")
}
iff.NoHeaders!=nil{
cmd.Flags().BoolVar(f.NoHeaders,"no-headers",*f.NoHeaders,"When using the default or custom-column output format, don't print headers (default print headers).")
}
// TODO(juanvallejo): This is deprecated - remove
cmd.Flags().BoolP("show-all","a",true,"When printing, show all resources (default show all pods including terminated one.)")
cmd.Flags().MarkDeprecated("show-all","will be removed in an upcoming release")
}
// NewGetPrintFlags returns flags associated with humanreadable,
// template, and "name" printing, with default values set.