Updating Man function to work with lh as wrapper.

This commit is contained in:
Daniel Baumann 2010-04-09 20:04:52 +02:00
parent a83218fe70
commit 684e14653f
2 changed files with 9 additions and 2 deletions

View File

@ -11,7 +11,7 @@ Man ()
{ {
if [ -x "$(which man 2>/dev/null)" ] if [ -x "$(which man 2>/dev/null)" ]
then then
man $(basename ${0}) man lh_$(basename ${0})
exit 0 exit 0
fi fi
} }

View File

@ -19,7 +19,14 @@ USAGE="FIXME"
case "${1}" in case "${1}" in
-h|--help) -h|--help)
Man if [ -x "$(which man 2>/dev/null)" ]
then
man lh
exit 0
else
${0} --usage
exit 0
fi
;; ;;
""|-u|--usage) ""|-u|--usage)