code: func (o *Options) Complete(f cmdutil.Factory, cmd *cobra.Command) error {
  	var err error
  	if o.ClientOnly {
  		return nil
  	}
  	o.discoveryClient, err = f.ToDiscoveryClient()
  	// if we had an empty rest.Config, continue and just print out client information.
  	// if we had an error other than being unable to build a rest.Config, fail.
  	if err != nil && !clientcmd.IsEmptyConfig(err) {
  		return err
  	}
  	return nil
  }
docs: // Complete completes all the required options