scripts/cli in rvm-0.1.11 vs scripts/cli in rvm-0.1.12

- old
+ new

@@ -168,20 +168,19 @@ rvm_action="${rvm_action:-use}" shift ;; # For use with --patch - --patch-name) rvm_ruby_patch_name="$1" ; shift ;; + --patch-name) export rvm_ruby_patch_name="$1" ; shift ;; -h|--patch) if [[ -z "$rvm_ruby_patch" ]] ; then - rvm_ruby_patch="$1"; + export rvm_ruby_patch="$1" else - rvm_ruby_patch="$rvm_ruby_patch,$1"; - fi + export rvm_ruby_patch="$rvm_ruby_patch,$1"; + fi ; shift rvm_action="${rvm_action:-use}" - shift ;; --head) if [[ -z "$rvm_ruby_string" ]] ; then rvm_ruby_string="head"; else rvm_ruby_string="${rvm_ruby_string}-head" ; fi rvm_ruby_revision="head" @@ -259,27 +258,28 @@ rvm_action="use" rvm_ruby_interpreter="$rvm_token" rvm_ruby_string="$rvm_token" ;; - --install) export rvm_install_on_use_flag=1 ;; -h|--help|usage|help) rvm_action=help ;; - -G|--gems) rvm_gems_path="$1" ; shift ;; + -G|--gems) rvm_gems_path="$1" ; shift ;; --source) rvm_src_path="$1" ; shift ;; --archives) rvm_archives_path="$1" ; shift ;; --make) rvm_ruby_make="$1" ; shift ;; --make-install) rvm_ruby_make_install="$1" ; shift ;; --nice) rvm_niceness="$1" ; shift ;; -l|--level) rvm_ruby_patch_level="p$1" ; shift ;; # TODO: handle this below better (if $1 is null) -m|--gem-set) rvm_gem_set_name="$1" ; shift ;; --sdk) rvm_sdk="$1" ; shift ;; --archflags) rvm_archflags="$1" ; shift ;; - --trace) export rvm_trace_flag=1 ; set -x ;; --symlink) rvm_symlink_name="$1" ; shift ;; tests|specs) rvm_action="tests" ;; - --disable-llvm|--disable-jit) export rvm_llvm_flag=0 ;; - --enable-llvm|--enable-jit) export rvm_llvm_flag=1 ;; + --install) export rvm_install_on_use_flag=1 ;; + --trace) export rvm_trace_flag=1 ; set -x ;; + --proxy) export rvm_proxy="$1" ; shift ;; + --disable-llvm|--disable-jit) export rvm_llvm_flag=0 ;; + --enable-llvm|--enable-jit) export rvm_llvm_flag=1 ;; --self|--gem|--rubygems|--reconfigure|--default|--debug|--force|--all|--dump|--summary|--latest|--yaml|--json|--archive|--shebang|--env|--path|--tail|--delete|--verbose|--load|--passenger|--editor) export rvm_$(echo $rvm_token | sed 's#-##g')_flag=1 if [[ "--debug" = "$rvm_token" ]] ; then export rvm_debug_flag ; fi ;;