scripts/cli in rvm-0.1.0 vs scripts/cli in rvm-0.1.1

- old
+ new

@@ -66,11 +66,16 @@ rvm_ruby_string=$(echo $rvm_gem_set_name | sed 's/\(.*\)%.*/\1/') rvm_gem_set_name=$(echo $rvm_gem_set_name | sed 's/.*%\(.*\)/\1/') if [[ "$rvm_ruby_string" != "$rvm_gem_set_name" ]] ; then export rvm_ruby_string ; fi if [[ ! -z "$rvm_gem_set_name" ]] ; then export rvm_gem_set_name ; fi else - rvm_gem_set_name="$1" ; shift - export rvm_use_flag=1 # Default is to use the (named) gem set. + if [[ -z "$1" ]] ; then + rvm_action="error" + rvm_error_message="'gems' must be followed by a gems(et) action, see http://rvm.beginrescueend.com/gemsets/#managing for details." + else + rvm_gem_set_name="$1" ; shift + export rvm_use_flag=1 # Default is to use the (named) gem set. + fi fi ;; gemdir) rvm_action=$rvm_token