code: func (f *NamePrintFlags) ToPrinter(outputFormat string) (printers.ResourcePrinter, error) {
  	namePrinter := &printers.NamePrinter{
  		Operation: f.Operation,
  	}
  
  	outputFormat = strings.ToLower(outputFormat)
  	switch outputFormat {
  	case "name":
  		namePrinter.ShortOutput = true
  		fallthrough
  	case "":
  		return namePrinter, nil
  	default:
  		return nil, NoCompatiblePrinterError{OutputFormat: &outputFormat, AllowedFormats: f.AllowedFormats()}
  	}
  }
docs: // ToPrinter receives an outputFormat and returns a printer capable of
  // handling --output=name printing.
  // Returns false if the specified outputFormat does not match a supported format.
  // Supported format types can be found in pkg/printers/printers.go