# HG changeset patch # User wenzelm # Date 953648613 -3600 # Node ID edaac961e18146bb83dae6b9f86079f016679272 # Parent f54926bded7b708b91ca4e7c5281465c20a20d34 help message; diff -r f54926bded7b -r edaac961e181 Admin/rsync-isabelle --- a/Admin/rsync-isabelle Tue Mar 21 00:18:54 2000 +0100 +++ b/Admin/rsync-isabelle Tue Mar 21 15:23:33 2000 +0100 @@ -12,9 +12,10 @@ usage() { echo - echo "Usage: $PRG [OPTIONS] [DEST]" + echo "Usage: $PRG [OPTIONS] DEST" echo echo " Options are:" + echo " -h print help message" echo " -n dry run, don't do anything, just report what would happen" echo " -d delete files that are not on the server (beware!)" echo @@ -32,11 +33,15 @@ # options +HELP="" ARGS="" -while getopts "nd" OPT +while getopts "hnd" OPT do case "$OPT" in + h) + HELP=true + ;; n) ARGS="$ARGS -n" ;; @@ -52,6 +57,60 @@ shift `expr $OPTIND - 1` +# help + +if [ -n "$HELP" ]; then + cat <