#!/bin/csh -f
#+
# focus -- show or set the DEIMOS dewar focus value
#
# Purpose:
#	With no arguments, print the current DEIMOS dewar focus setting.
#	With one numeric argument, set the DEIMOS dewar focus setting,
#
# Usage:
#	focus [x]
# 
# Arguments:
#	x = focus setting to select
# 
# Output:
#	- With no arguments, the focus setting 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 DWFOCVAL
else
	modify -s deimot DWFOCVAL="$1"
	exit $status
endif
