#!/bin/bash
#
# (c) 2008 Fabian Herschel
# GPL

usage()
{
	echo "$0 "'[--help|--list-agents|--list-templates|--config configfile agent]'
}


while [ $# -gt 0 ]; do
	case "$1" in
		-? | -h | --help ) usage
				exit 0
				;;
		--list-agents | --la )
			(cd /usr/lib/wow/agents; ls -1 )
				;;
		--list-templates | --lt )
			(cd /usr/share/wow/xml; ls -1 )
				;;
		--config )
			config="$2"
			agent="$3"
			/usr/lib/wow/agents/$agent --config "$config"
				;;
	esac
	shift
done
