#!/bin/bash
while [ -n "$1" ];do
  case $1 in
    --*) 
      export "${1:2}=$2"; shift; shift;
    ;;
    *)
      shift;
    ;;
  esac
done
 
eval "$command"
exit $?

