#!/usr/local/bin/python

from parse_cordis import rabbit_mq
import sys

if len(sys.argv) < 4:
	print "Usage: parse_cordis_rabbitmq <MAX_NUMBER_OF_RESULTS=10> <HOST> <QUEUE>"
	print "  Example: parse_cordis_rabbitmq 10 localhost cordis"
else:
	rabbit_mq.rabbit_mq_from_cordis(sys.argv[1], sys.argv[2], sys.argv[3])