code: 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)
  
  	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].")
  	}
  	if f.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).")
  	}
  }
docs: // AddFlags receives a *cobra.Command reference and binds
  // flags related to humanreadable and template printing.