code: func ValidateMixedArguments(flag *pflag.FlagSet) error {
  	// If --config isn't set, we have nothing to validate
  	if !flag.Changed("config") {
  		return nil
  	}
  
  	mixedInvalidFlags := []string{}
  	flag.Visit(func(f *pflag.Flag) {
  		if isAllowedFlag(f.Name) {
  			// "--skip-*" flags or other allowed flags can be set with --config
  			return
  		}
  		mixedInvalidFlags = append(mixedInvalidFlags, f.Name)
  	})
  
  	if len(mixedInvalidFlags) != 0 {
  		return errors.Errorf("can not mix '--config' with arguments %v", mixedInvalidFlags)
  	}
  	return nil
  }
docs: // ValidateMixedArguments validates passed arguments