Commit 373bc974 authored by Raymond Toy's avatar Raymond Toy
Browse files

Recognize -h and -? options to print out a usage message.

parent e99b2b29
...@@ -18,6 +18,19 @@ usage() { ...@@ -18,6 +18,19 @@ usage() {
##-- ##--
prgm_name=`basename $0` bld_dir=$1 lisp_variant=$2 motif_variant=$3 prgm_name=`basename $0` bld_dir=$1 lisp_variant=$2 motif_variant=$3
while getopts "h?" arg
do
case $arg in
h) usage ;;
\?) usage ;;
esac
done
bld_dir=$1
lisp_variant=$2
motif_variant=$3
exec 2>&1 exec 2>&1
[ -n "$bld_dir" ] || usage [ -n "$bld_dir" ] || usage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment