#! /bin/sh -
Syntax() {
	echo 1>&2 "Arguments to `basename $0` (all optional):"
	echo 1>&2 "  --help              Print this message"
	echo 1>&2 "  UTILITY [arg1] ...  Run UTILITY with option args"
}
Error() {
	echo 1>&2 "Error in `basename $0`: $1"
	exit 1
}
while [ $# -gt 0 ]
do
    case "$1" in
	-h|-help|--help) Syntax
	    exit 0
	    ;;
        -*) Syntax ;
            Error "Unrecognized argument $1"
            ;;
	*)
	    sh_command="$@"
            break
            ;;
    esac
    shift
done
exec $sh_command
