code: func (o *SetSelectorOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error {
  	var err error
  
  	o.RecordFlags.Complete(cmd)
  	o.Recorder, err = o.RecordFlags.ToRecorder()
  	if err != nil {
  		return err
  	}
  
  	o.dryrun = cmdutil.GetDryRunFlag(cmd)
  
  	o.resources, o.selector, err = getResourcesAndSelector(args)
  	if err != nil {
  		return err
  	}
  
  	o.ResourceFinder = o.ResourceBuilderFlags.ToBuilder(f, o.resources)
  	o.WriteToServer = !(*o.ResourceBuilderFlags.Local || o.dryrun)
  
  	if o.dryrun {
  		o.PrintFlags.Complete("%s (dry run)")
  	}
  	printer, err := o.PrintFlags.ToPrinter()
  	if err != nil {
  		return err
  	}
  	o.PrintObj = printer.PrintObj
  
  	return err
  }
docs: // Complete assigns the SelectorOptions from args.