code: func (f *RecordFlags) ToRecorder() (Recorder, error) {
  	if f == nil {
  		return NoopRecorder{}, nil
  	}
  
  	shouldRecord := false
  	if f.Record != nil {
  		shouldRecord = *f.Record
  	}
  
  	// if flag was explicitly set to false by the user,
  	// do not record
  	if !shouldRecord {
  		return NoopRecorder{}, nil
  	}
  
  	return &ChangeCauseRecorder{
  		changeCause: f.changeCause,
  	}, nil
  }
docs: // ToRecorder returns a ChangeCause recorder if --record=false was not
  // explicitly given by the user