scripts/cli in rvm-0.1.37 vs scripts/cli in rvm-0.1.38
- old
+ new
@@ -1,10 +1,13 @@
#!/usr/bin/env bash
__rvm_usage() { cat "${rvm_path:-$HOME/.rvm}/README" | ${PAGER:-less} ; }
__rvm_parse_args() {
+
+ echo "$@" >> $HOME/.rvm_history
+
if echo "$@" | grep -q 'trace' ; then echo "$@" ; __rvm_version ; fi
while [[ $# -gt 0 ]] ; do
rvm_token="$1" ; shift
case "$rvm_token" in
@@ -288,10 +291,17 @@
--passenger|--editor)
rvm_wrapper_name="${rvm_token/--/}"
;;
+ --alias)
+ if [[ -n "$1" ]]; then
+ export rvm_ruby_aliases="$(echo "$1" | tr ',' ' ')"
+ shift
+ fi
+ ;;
+
--symlink)
$rvm_scripts_path/log "warn" "--symlink has been removed, please see 'rvm wrapper'."
shift
;;
@@ -490,10 +500,12 @@
__rvm_gemset_select
result=$? ; if [[ $result -eq 0 ]] ; then
__rvm_gemset_use
fi
else
+ export rvm_ruby_strings
$rvm_scripts_path/gemsets $rvm_ruby_args
+ unset rvm_ruby_strings
# Clear the gemset.
if [[ "$rvm_delete_flag" -eq 1 ]] ; then
gem_prefix="$(echo $GEM_HOME | sed 's/'${rvm_gemset_separator}'.*$//')"
if [[ "$GEM_HOME" = "${gem_prefix}${rvm_gemset_separator}${rvm_gemset_name}" ]] ; then