#!/bin/csh -f
#+
# slitmask -- show or select the DEIMOS slitmask by name
#
# Purpose:
#	With no arguments, print the name of the current DEIMOS
#	slitmask. With an argument, select the named DEIMOS slitmask.
#
# Usage:
#	slitmask [name]
# 
# Arguments:
#	name = name of the slitmask to select
# 
# Output:
#	- With no arguments, the name of the slitmask is printed
# 
# Restrictions:
# 
# Exit values:
#	 0 = normal completion
#	 1 = wrong number of arguments
#
# Example:
#
#-
# Modification history:
#	2002-Jun-06	GDW	Original version
#-----------------------------------------------------------------------

set buf = $0
set cmd = $buf:t
set usage = "Usage: $cmd"

# verify args...
if ( $#argv > 1 ) then
  printf "$usage\n"
  exit 1
endif

if ( $#argv == 0 ) then
	show -s deimot -terse SLMSKNAM
else
	modify -s deimot SLMSKNAM="$1"
	exit $status
endif