code: func (o *RolloutHistoryOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error {
  	o.Resources = args
  
  	var err error
  	if o.Namespace, o.EnforceNamespace, err = f.ToRawKubeConfigLoader().Namespace(); err != nil {
  		return err
  	}
  
  	o.ToPrinter = func(operation string) (printers.ResourcePrinter, error) {
  		o.PrintFlags.NamePrintFlags.Operation = operation
  		return o.PrintFlags.ToPrinter()
  	}
  
  	o.HistoryViewer = polymorphichelpers.HistoryViewerFn
  	o.RESTClientGetter = f
  	o.Builder = f.NewBuilder
  
  	return nil
  }
docs: // Complete completes al the required options