# Last edited on 2000-05-22 01:01:14 by stolfi
# Parses options for factor-words

set eelump = 0
set hicsplit = 0
set hicsmash = 0
set ktsmash = 0
set chshsmash = 0
set esplit = 0

while ( ( $#argv > 0 ) && ( "x$1" =~ x-* ) ) 
  if ( ( $#argv >= 1 ) && ( "x$1" == "x-eelump" ) ) then
    set eelump = 1; shift; 
  else if ( ( $#argv >= 1 ) && ( "x$1" == "x-hicsmash" ) ) then
    set hicsmash = 1; shift; 
  else if ( ( $#argv >= 1 ) && ( "x$1" == "x-hicsplit" ) ) then
    set hicsplit = 1; shift; 
  else if ( ( $#argv >= 1 ) && ( "x$1" == "x-ktsmash" ) ) then
    set ktsmash = 1; shift; 
  else if ( ( $#argv >= 1 ) && ( "x$1" == "x-chshsmash" ) ) then
    set chshsmash = 1; shift; 
  else if ( ( $#argv >= 1 ) && ( "x$1" == "x-esplit" ) ) then
    set esplit = 1; shift; 
  else 
    echo "usage: ${usage}"; exit 1
  endif
end

