#-------------------------------------------------------------------------------
# Function to display usage and exit on a bad call.
# Caller exports $FULL_SCRIPTNAME and $DEBUG_SWITCH, 
# and passes an acceptable argument list as $*.
#-------------------------------------------------------------------------------
 
SYNTAX()
{
 set "$DEBUG_SWITCH"
 print "***"
 print "***  Syntax! I said:"
 print "***          `basename ${FULL_SCRIPTNAME}` $*"
 print "***      OR:"
 print "***          `basename ${FULL_SCRIPTNAME}` $* -debug X"
 print "***             (where 'X' is 'Y' or 'N')"
 print "***"
 print "***  Option      Purpose"
 print "***  ------      -------"
 print "***  -debug      Turns on script debugging."
 print "***\n"
 exit 1
}
