Skip to content

Commit

Permalink
Who commented out that shift? :)
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Dec 11, 2009
1 parent f02ff22 commit 151935a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/cli
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ __rvm_parse_args() {
while [[ $# -gt 0 ]] ; do
rvm_token="$1" ; shift
case "$rvm_token" in
fetch|path|info|setup|version|srcdir|list|reset|debug|load|reload|implode|readline|update|iconv|curl|openssl|ncurses|zlib|readline|monitor|notes)
fetch|path|info|setup|version|srcdir|list|reset|debug|reload|implode|readline|update|iconv|curl|openssl|ncurses|zlib|readline|monitor|notes)
rvm_action=$rvm_token
;;

Expand Down Expand Up @@ -59,8 +59,8 @@ __rvm_parse_args() {
gems|gemset)
rvm_action="gems"
if [[ "name" = "$1" ]] || [[ "dir" = "$1" ]] || [[ "list" = "$1" ]] || [[ "empty" = "$1" ]] || [[ "delete" = "$1" ]] || [[ "dump" = "$1" ]] || [[ "load" = "$1" ]] ; then
rvm_ruby_args="$*"
#export rvm_${1}_flag=1 ; shift
rvm_ruby_args="$*" ; shift
export rvm_${1}_flag=1 ; shift
else
rvm_gem_set_name="$1" ; shift
export rvm_use_flag=1 # Default is to use the (named) gem set.
Expand Down Expand Up @@ -262,7 +262,7 @@ __rvm_parse_args() {
tests|specs) rvm_action="tests" ;;
--trace) export rvm_trace_flag=1 ; set -x ;;

--self|--gem|--rubygems|--reconfigure|--default|--debug|--force|--all|--dump|--summary|--jit|--latest|--yaml|--json|--archive|--shebang|--env|--path|--tail|--delete|--verbose)
--self|--gem|--rubygems|--reconfigure|--default|--debug|--force|--all|--dump|--summary|--jit|--latest|--yaml|--json|--archive|--shebang|--env|--path|--tail|--delete|--verbose|--load)
export rvm_$(echo $rvm_token | sed 's#-##g')_flag=1
if [[ "--debug" = "$rvm_token" ]] ; then export rvm_debug_flag ; fi
;;
Expand Down

0 comments on commit 151935a

Please sign in to comment.