#!/bin/bash
#########################################################
# 							#
# This is BashStyle-NG					#
#							#
# Licensed under GNU GENERAL PUBLIC LICENSE v3    	#
#							#
# Copyright 2007 - 2014 Christopher Bratusek		#
#							#
#########################################################

case ${1} in

	--help | -h | "")

		bsng-help -a "Christopher Roy Bratusek" -e "nano@tuxfamily.org" -h "http://www.nanolx.org/"\
			-l "GNU GPL v3" -n "assign" -s "assign multiple variables" -v "${BSNG_VERSION}" -y "2013"\
			-o "no options:|"

	;;

	* )
		for opt in $@; do
			var="X=\$${opt/:*}"
			eval $var
			if [[ $X == "" ]]; then
				read ${opt/:*} <<< $(echo ${opt/*:})
			fi
		done
	;;
esac
