1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-15 14:53:53 -05:00

Add man page (#1438)

`rbenv help` without arguments now runs `man rbenv` on systems where man is present.
This commit is contained in:
Mislav Marohnić
2022-09-27 02:17:50 +02:00
committed by GitHub
parent 7c7c4dc11c
commit 22ee5d4175
6 changed files with 265 additions and 1 deletions

View File

@@ -154,8 +154,11 @@ if [ "$1" = "--usage" ]; then
fi
if [ -z "$1" ] || [ "$1" == "rbenv" ]; then
if [ -z "$usage" ] && [ -t 1 ] && type -p man >/dev/null; then
MANPATH="${BASH_SOURCE%/*}/../share/man:$MANPATH" exec man rbenv
fi
echo "Usage: rbenv <command> [<args>]"
[ -z "$usage" ] || exit
[ -n "$usage" ] && exit
echo
echo "Some useful rbenv commands are:"
print_summaries commands local global shell install uninstall rehash version versions which whence