code: func (o *GetOptions) Validate(cmd *cobra.Command) error {
  	if len(o.Raw) > 0 {
  		if o.Watch || o.WatchOnly || len(o.LabelSelector) > 0 || o.Export {
  			return fmt.Errorf("--raw may not be specified with other flags that filter the server request or alter the output")
  		}
  		if len(cmdutil.GetFlagString(cmd, "output")) > 0 {
  			return cmdutil.UsageErrorf(cmd, "--raw and --output are mutually exclusive")
  		}
  		if _, err := url.ParseRequestURI(o.Raw); err != nil {
  			return cmdutil.UsageErrorf(cmd, "--raw must be a valid URL path: %v", err)
  		}
  	}
  	if cmdutil.GetFlagBool(cmd, "show-labels") {
  		outputOption := cmd.Flags().Lookup("output").Value.String()
  		if outputOption != "" && outputOption != "wide" {
  			return fmt.Errorf("--show-labels option cannot be used with %s printer", outputOption)
  		}
  	}
  	return nil
  }
docs: // Validate checks the set of flags provided by the user.