code: func (o AnnotateOptions) Validate() error {
  	if o.all && len(o.selector) > 0 {
  		return fmt.Errorf("cannot set --all and --selector at the same time")
  	}
  	if o.all && len(o.fieldSelector) > 0 {
  		return fmt.Errorf("cannot set --all and --field-selector at the same time")
  	}
  	if len(o.resources) < 1 && cmdutil.IsFilenameSliceEmpty(o.Filenames, o.Kustomize) {
  		return fmt.Errorf("one or more resources must be specified as <resource> <name> or <resource>/<name>")
  	}
  	if len(o.newAnnotations) < 1 && len(o.removeAnnotations) < 1 {
  		return fmt.Errorf("at least one annotation update is required")
  	}
  	return validateAnnotations(o.removeAnnotations, o.newAnnotations)
  }
docs: // Validate checks to the AnnotateOptions to see if there is sufficient information run the command.