def main():
	options_config = OptionParser()
	
	options_config.add_option("--input", action="store", type="string", dest="input_filename", default="testlist.csv")
	options_config.add_option("--queue", action="store", type="string", dest="input_queue")
	options_config.add_option("--queue-id", action="store", type="int", dest="input_queue_id")
	options_config.add_option("--source", action="store", type="string", dest="source_name", default="TLSProber")
	options_config.add_option("--description", action="store", type="string", dest="description",default="TLSProber")
	options_config.add_option("--file", action="store_true", dest="file_list_only")
	options_config.add_option("--priority", action="store", dest="priority", default="5")
	options_config.add_option("--testbase2", action="store_true", dest="use_testbase2")
	options_config.add_option("--threads", action="store", type="int", dest="threads", default=30)
	options_config.add_option("--verbose", action="store_true", dest="verbose")
	options_config.add_option("--branch", action="store", type="string", dest="branch")
	options_config.add_option("--count", action="store", type="int", dest="count", default=0)
	
	(options, args) = options_config.parse_args()
	
	if options.priority <1 :
		options.priority = 1
	
	started = datetime.datetime.now()
	
	run = setup_queue(options)
	
	if options.verbose:
		print "Run %d for %s/%s has been initiated. %d items" %(run.id, options.source_name, options.description, Probe.ProbeQueue.objects.filter(part_of_run=run).count())
	
	ended = datetime.datetime.now()
	
	if options.verbose:
		print "Time to run: ", (ended-started)
dataset/ETHPy150Open operasoftware/tlsprober/cluster_setup.py/main/original