Generate a bash function to parse --arg style arguments and put them inside an associative array.