- if [ ! -x "$KEYSLIB/$prefix.$i" ]; then
- echo >&2 "$quis: unrecognized command \`$i'"
- rc=1
- continue
- elif ! KEYS_HELP=t "$KEYSLIB/$prefix.$i"; then
- rc=1
- fi
+ foundp=nil
+ while read cmdname cmdargs; do
+ case $cmdname in "$cmd") foundp=t; break ;; esac
+ done <<EOF
+$cmds
+EOF
+ case $foundp in
+ t)
+ usage; echo
+ eval help=\$help_$cmdname; echo "$help"
+ ;;
+ nil)
+ if [ ! -x "$KEYSLIB/$prefix.$cmd" ]; then
+ echo >&2 "$quis: unrecognized command \`$cmd'"
+ rc=1
+ continue
+ elif ! KEYS_HELP=t "$KEYSLIB/$prefix.$cmd"; then
+ rc=1
+ fi
+ ;;
+ esac