Make "Man" function smarter to also work for "lb --help"
This commit is contained in:
parent
55d9b213cf
commit
fac2d8d903
|
@ -11,9 +11,21 @@
|
|||
|
||||
Man ()
|
||||
{
|
||||
local BASENAME
|
||||
BASENAME=$(basename ${0})
|
||||
if [ $(which man) ]
|
||||
then
|
||||
man ${PROGRAM} $(basename ${0})
|
||||
exit 0
|
||||
case $BASENAME in
|
||||
$PROGRAM)
|
||||
man ${PROGRAM}
|
||||
;;
|
||||
*)
|
||||
man ${PROGRAM} $(basename ${0})
|
||||
;;
|
||||
esac
|
||||
else
|
||||
Echo_warning "man is not installed, falling back to usage output."
|
||||
Usage
|
||||
fi
|
||||
exit 0
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue