Kaynağa Gözat

handle --help for subcommands

If subcommand is provided (and exists) and its first arg is -h/--help,
go ahead and intercept the call; redirecting to rbenv-help <subcommand>

This means subcommands and plugins need not handle --help flag
themselves
pull/487/head^2
Jason Karns 10 yıl önce
ebeveyn
işleme
2c4dd63f77
1 değiştirilmiş dosya ile 5 ekleme ve 1 silme
  1. +5
    -1
      libexec/rbenv

+ 5
- 1
libexec/rbenv Dosyayı Görüntüle

@ -111,6 +111,10 @@ case "$command" in
fi
shift 1
exec "$command_path" "$@"
if [ "$1" = --help ]; then
exec rbenv-help "$command"
else
exec "$command_path" "$@"
fi
;;
esac

Yükleniyor…
İptal
Kaydet