Skip to content

Commit

Permalink
report version number. closes jf#5.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Aug 27, 2011
1 parent 62ab640 commit b72ecbe
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion bin/rbenv-gemset
@@ -1,5 +1,7 @@
#!/usr/bin/env bash -e

RBENV_GEMSET_VERSION="0.1.0"

case "$1" in
"create")
RBENV_VERSION="$2"
Expand Down Expand Up @@ -152,7 +154,14 @@ PLUGIN
echo "rbenv-gemset plugin uninstalled"
;;

"version")
echo "rbenv-gemset ${RBENV_GEMSET_VERSION}"
echo "by Jamis Buck <jamis@jamisbuck.org>"
echo "http://github.com/jamis/rbenv-gemset"
;;

*)
echo "version ${RBENV_GEMSET_VERSION}" >&2
echo "${0##*/} [command] [options]" >&2
echo >&2
echo "possible commands are:" >&2
Expand All @@ -161,6 +170,6 @@ PLUGIN
echo " list" >&2
echo " install [-g]" >&2
echo " uninstall [-g]" >&2
exit 1
echo " version" >&2
;;
esac

0 comments on commit b72ecbe

Please sign in to comment.