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