#!/bin/sh
# -*- indent-tabs-mode: nil; -*-
# @(#)$HGid$

VERSION=@@VERSION@@

#
# Global option handling
#
while getopts "h" _opt ; do
    case ${_opt} in
        h)
            echo "Usage:"
            exit 0
            ;;
        \?|:)
            exit 2;
            ;;
    esac
done

#
# Reset the Shell's option handling system to prepare for handling
# command-local options.
#
shift $((OPTIND-1))
OPTIND=1

command="$1"
shift

case "${command}" in
    test)
        echo "TEST"
        ;;
    *)
        echo "ERROR" >&2
        exit 2
        ;;
esac
