Sha256: 8b042932ca33195f16c320f0dfb958dccf223e21d7b28470b11a7d7dcf897701

Contents?: true

Size: 1.12 KB

Versions: 1

Compression:

Stored size: 1.12 KB

Contents

#!/usr/bin/env bash
rvm_base_except="selector"
source "$rvm_scripts_path/base"

rvm_help_path="${rvm_help_path:-"$rvm_path/help"}"

command="$(echo $* | awk '{print $1}')"
action="$(echo $* | awk '{print $2}')"
# Reserved for future use:
args=$(echo "$*" | awk '{$1=""; $2="" ; print}' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')

if [[ ! -z "$command" ]] && [[ -s "${rvm_help_path}/${command}" ]] ; then
  if [[ ! -z "$action" ]] && [[ -s "${rvm_help_path}/${command}/${action}" ]] ; then
    ${PAGER:-less} "${rvm_help_path}/${command}/${action}"
  else
    ${PAGER:-less} "${rvm_help_path}/${command}"
  fi
else
  ${PAGER:-less} "${rvm_path:-$HOME/.rvm}/README"
  $rvm_scripts_path/log "info" "Commands available with 'rvm help':\n\n    $(builtin cd "${rvm_help_path}" ; \ls | \tr "\n" ' ')"
fi

$rvm_scripts_path/log "info" "For additional information please visit RVM's documentation website:\n\n    http://rvm.beginrescueend.com/"
$rvm_scripts_path/log "info" "If you still cannot find what an answer to your question, find me 'wayneeseguin' in #rvm on irc.freenode.net:\n\n    http://webchat.freenode.net/?channels=rvm\n"

exit $?

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rvm-1.0.1 scripts/help