message: Allow posix like options on the command line in parseConfig
diff: @@ -30,6 +30,10 @@ parseConfig()
  {
  # parse command line arguments, they have to be in the form
  # option=value
  + # --or--
  + # -option value
  + # --or--
  + # --option value
  # they are then set in the environment
  # additionally another variable named: parseConfig__ORIGINAL__${option}
  # is set to have a fallback.
  @@ -71,15 +75,28 @@ parseConfig()
  done
  #then, parse the options as they override the options from configFile
  + local var=""
  + local value=""
  for opt in "${args[@]}"; do
  [[ -n ${encodedSpaces} ]] && opt="$(decSpaces ${opt})"
  if [[ ! "${opt}" =~ .*=.* ]]; then
  - echo "badly formatted option ${var}, should be: option=value, stopping..."
  + if [[ "${opt}" =~ ^-.? && -z "$expectPosixOptionValue" ]]; then
  + var="${opt#--}"
  + var="${var#-}"
  + expectPosixOptionValue=1
  + continue
  + elif [[ -n "$expectPosixOptionValue" ]]; then
  + value="${opt}"
  + unset expectPosixOptionValue
  + else
  + echo "badly formatted option ${var}, should be: option=value (or -var value) stopping..."
  return 1
  fi
  - local var="${opt%%=*}"
  - local value="${opt#*=}"
  - #echo "${var}=${value}"
  + else
  + var="${opt%%=*}"
  + value="${opt#*=}"
  + fi
  + #echo "setting ${var}=${value}"
  export ${var}="${value}"
  [[ -n ${originalOptionPrefix} ]] && export ${originalOptionPrefix}${var}="${value}"
  done
  