scripts/cli in rvm-0.1.35 vs scripts/cli in rvm-0.1.36
- old
+ new
@@ -324,11 +324,11 @@
shift
;;
reboot|damnit|wtf|argh|BOOM|boom|wth) $rvm_action="reboot" ;;
- --self|--gem|--rubygems|--reconfigure|--default|--debug|--force|--export|--summary|--latest|--yaml|--json|--archive|--shebang|--env|--path|--tail|--delete|--verbose|--import|--rvmrc|--sticky|--create|--rvmrc|--gems)
+ --self|--gem|--rubygems|--reconfigure|--default|--debug|--force|--export|--summary|--latest|--yaml|--json|--archive|--shebang|--env|--path|--tail|--delete|--verbose|--import|--rvmrc|--sticky|--create|--rvmrc|--gems|--docs)
export rvm_$(echo $rvm_token | sed 's#-##g')_flag=1
if [[ "--debug" = "$rvm_token" ]] ; then rvm_debug_flag ; fi
;;
--) rvm_ruby_args="$*" ; rvm_parse_break=1 ;;
@@ -447,11 +447,11 @@
else
$rvm_scripts_path/info $rvm_ruby_args
fi
result=$?
;;
- docs) $rvm_scripts_path/docs ; result=$? ;;
+ docs) $rvm_scripts_path/docs $rvm_ruby_args ; result=$? ;;
alias) $rvm_scripts_path/alias $rvm_ruby_args ; result=$? ;;
help) $rvm_scripts_path/help $rvm_ruby_args ; result=$? ;;
answer) __rvm_Answer_to_the_Ultimate_Question_of_Life_the_Universe_and_Everything ; result=42 ;;
question) __rvm_ultimate_question ; result=42 ;;
@@ -545,10 +545,14 @@
__rvm_usage
fi
result=1
esac
- if [[ ! -z "$rvm_reload_flag" ]] ; then source "$rvm_scripts_path/rvm" ; fi
+ if [[ ! -z "$rvm_reload_flag" ]] ; then
+ source "$rvm_scripts_path/rvm"
+ # Note: Not using builtin on purpose. Done so we can trigger a reload the rvmrc.
+ cd .
+ fi
if [[ ! -z "$rvm_trace_flag" ]] ; then set +x ; unset rvm_trace_flag ; fi
__rvm_teardown