Skip to content

Commit

Permalink
improved handling of gemset --create
Browse files Browse the repository at this point in the history
  • Loading branch information
mpapis committed Jun 4, 2012
1 parent 9b875be commit 0e9c38c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/cli
Expand Up @@ -70,6 +70,15 @@ __rvm_parse_args()

rvm_ruby_gem_home="${GEM_HOME:-""}"

if [[ "$next_token" == "--create" ]]
then
rvm_create_flag=1
next_token="${1:-}"
(( $# == 0 )) || shift
elif [[ " $* " =~ " --create " ]]
then rvm_create_flag=1
fi

if [[ -z "$next_token" ]]
then
rvm_ruby_args=("help")
Expand Down

0 comments on commit 0e9c38c

Please sign in to comment.