#!/bin/bash
while [ -n "$1" ];do
  case $1 in
    --*)
       typeset -a "${1:2}"
       eval "${1:2}+=(\"\$2\")"
       shift; shift;
    ;;
    *)
      shift;
    ;;
  esac
done
eval "outdir=\"\$(realpath -s \"\${outdir:-.}\")\" ; ${command:-". \"\$sourcefile\""}"
exit $?

