#!/usr/bin/env bash

# Check which CVEs are ready for a release right now.
#

#Useful for debugging
#set -x

#Bail when non-zero return codes are encountered
set -e


usage () {
    cat <<EOF 1>&2
usage: $0 [options] file [file...]
  Print CHANGES entry for a CVE.json file.
  Options:
    -h             print usage information
EOF
  exit 1
}

while getopts "h" opt; do
    case $opt in
        h)  usage
            ;;
    esac
done
shift $((OPTIND-1))

source `dirname $0`/common-lib.sh
source `dirname $0`/env.sh

for CVE_JSON in "$@"; do
  cve_changes "${CVE_JSON}"
done
