Sha256: d8e5e7627d6add96b816833d50dffce30aef7016590903be952829ccbe99c748

Contents?: true

Size: 1.32 KB

Versions: 7

Compression:

Stored size: 1.32 KB

Contents

#!/usr/bin/env bash

source $rvm_scripts_path/initialize

if [[ ! -z "$rvm_trace_flag" ]] ; then set -x ; export rvm_trace_flag ; fi

trap "if [[ -d $rvm_tmp_path/ ]] && [[ -s $rvm_tmp_path/$$ ]] ; then rm -f $rvm_tmp_path/$$ > /dev/null 2>&1 ; fi ; exit" 0 1 2 3 15

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
    cat "${rvm_help_path}/${command}/${action}" | ${PAGER:-less}
  else
    cat "${rvm_help_path}/${command}" | ${PAGER:-less}
  fi
else
  cat "${rvm_path:-$HOME/.rvm}/README" | ${PAGER:-less}
  $rvm_scripts_path/log "info" "\nCommands available with 'rvm help':\n\n $(builtin cd "${rvm_help_path}" ; \ls | tr "\n" ' ')"
fi

$rvm_scripts_path/log "info" "\nFor additional information please visit RVM's documentation website:\n\n    http://rvm.beginrescueend.com/"
$rvm_scripts_path/log "info" "\nIf 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

7 entries across 7 versions & 1 rubygems

Version Path
rvm-0.1.39 scripts/help
rvm-0.1.38 scripts/help
rvm-0.1.37 scripts/help
rvm-0.1.36 scripts/help
rvm-0.1.35 scripts/help
rvm-0.1.34 scripts/help
rvm-0.1.33 scripts/help