def validate_options!(options)
      return if options[:help] || options[:version]
      raise MissingArgument, "--date" unless options[:date]
      raise MissingArgument, "--repository or --config" unless
        options[:repository] || options[:config]
    end
def validate_options!(options)
      return if options[:help] || options[:version]
      raise MissingArgument, "--date" unless options[:date]
      raise MissingArgument, "--repository or --config" unless
        options[:repository] || options[:config]
    end
rubocop:enable Metrics/MethodLength
 Given an +options+ Hash, determine if we got a valid combination of
 options.

 1. Anything with `--help` and `--version` is always valid.
 2. Otherwise, `--repository` or `--config` is required.
 3. If `--repository` or `--config` is required, so is `--date`.

 @param options [Hash] The result of CLI#parse().
 @raise [MissingArgument] if we did not get a valid options Hash.