-version () {
- echo "$PACKAGE version $VERSION"
-}
-
-help () {
- rc=0
- version
- case $# in
- 0)
- cat <<EOF
-
-$usage
-
-Options:
- -h Show this help text.
- -v Show the program version number.
-
-Commands installed:
-EOF
- cd "$KEYSLIB"
- for i in *; do
- case "$i" in *.*) continue ;; esac
- if [ ! -x "$i" ]; then continue; fi
- sed -n "/<<HELP/{n;s/^/ $i /;p;q;}" "$i"
- done
- ;;
- *)
- for i in "$@"; do
- echo
- if [ ! -x "$KEYSLIB"/"$i" ]; then
- echo >&2 "$quis: unrecognized command \`$i'"
- rc=1
- continue
- elif ! KEYS_HELP=t "$KEYSLIB"/"$i"; then
- rc=1
- fi
- done
- ;;
- esac
- return $rc
-}
-
-###--------------------------------------------------------------------------
-### Command dispatch.
-