#! /bin/bash

unset LANG

wait_opt=--wait-for-ok

while true; do
  if [ "$1" = "--target" ] ; then
    target="--target $2"
    shift
    shift
    continue
  fi

  if [ "$1" = "--sr" ] ; then
    sr="--sr $2"
    shift
    shift
    continue
  fi

  if [ "$1" = "--no-wait" ] ; then
    wait_opt=
    shift
    continue
  fi

  break
done

tobs $wait_opt $target $sr
