Sha256: 860fcdb79e73386bc30d7498684a70a6018d155c7d546505c734a511e5a28728

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

#!/usr/bin/env bash

rvm_base_except="selector"

source "$rvm_path/scripts/base"

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

args=($*)

command="${args[$__array_start]}"
args[$__array_start]=""
args=(${args[@]})

action="${args[$array_start]}"
args[$__array_start]=""
args=(${args[@]})
pager="${PAGER:-less -X}"

if [[ -n "$command" && -s "${rvm_help_path}/${command}" ]] ; then

  if [[ -n "$action" && -s "${rvm_help_path}/${command}/${action}" ]] ; then

    eval "$pager '${rvm_help_path}/${command}/${action}'"

  else

    eval "$pager '${rvm_help_path}/${command}'"

  fi

else

  eval "$pager '${rvm_path:-$HOME/.rvm}/README'"

  "$rvm_path/scripts/log" "info" \
    "Commands available with 'rvm help':\n\n    $(builtin cd "${rvm_help_path}" ; find . -maxdepth 1 -mindepth 1 -type f -print | \tr "\n" ' ' | sed -e 's#./##g')"
fi

"$rvm_path/scripts/log" "info" \
  "For additional information please visit RVM's documentation website:\n\n    http://rvm.beginrescueend.com/"

"$rvm_path/scripts/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

7 entries across 7 versions & 1 rubygems

Version Path
rvm-1.1.4 scripts/help
rvm-1.1.3 scripts/help
rvm-1.1.2 scripts/help
rvm-1.1.1 scripts/help
rvm-1.1.0 scripts/help
rvm-1.0.23 scripts/help
rvm-1.0.22 scripts/help