Skip to content

Commit

Permalink
Cleaned up upgraded/migrate usage().
Browse files Browse the repository at this point in the history
  • Loading branch information
wayneeseguin committed Sep 14, 2010
1 parent dc1ca0a commit 7bf733c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
13 changes: 11 additions & 2 deletions scripts/migrate
Expand Up @@ -5,8 +5,17 @@ unset GREP_OPTIONS
source "$rvm_path/scripts/base"

usage() {
echo "Usage: rvm migrate from to" >&2
echo "Moves all gemsets from one ruby to another." >&2
printf "
Usage:
rvm migrate {source-ruby} {destination-ruby}
Description:
Moves all gemsets from {source-ruby} ruby to {destination-ruby}.
" >&2
}

confirm() {
Expand Down
15 changes: 13 additions & 2 deletions scripts/upgrade
Expand Up @@ -4,8 +4,19 @@ unset GREP_OPTIONS
source "$rvm_path/scripts/base"

usage() {
echo "Usage: rvm upgrade prefix [specific version]" >&2
echo "Upgrades the latest installed ruby with a given prefix (e.g. ree) to a new version." >&2
printf "
Usage:
rvm upgrade prefix [ruby-string]
Description:
Upgrades the latest installed ruby with a given ruby string
(e.g. ree) to the latest known version.
" >&2

exit 1
}

Expand Down

0 comments on commit 7bf733c

Please sign in to comment.