#!/bin/csh -fxv
#
# Note the extra character (X) before $argv[1] which is necessary because if 
# $1 is of the form -abc... then the if statement gets confused
#
if ( $#argv == 0 ) then
	echo "$0"\:" Usage: $0 anyargument"
	exit 1
else if ( X$argv[1] =~ X-[a-zA-Z] ) then
	echo -n "You used a flag ($argv[1]). But in this"
	echo " program flags are just for fun"
	exit 0
else if ( X$argv[1] !~ X[a-zA-Z]* ) then
	echo "$argv[1] does not begin with a letter."
	exit 0
else
	echo "You gave an argument ($argv[1])"
	if ( -e "$argv[1]" ) echo "It was a file"
	exit 0
endif
