Improve deprecation notice

This commit is contained in:
Sam Stephenson 2011-08-18 14:09:48 -05:00
parent 20425c297f
commit 1d5c6531a2
2 changed files with 12 additions and 4 deletions

View file

@ -1,5 +1,9 @@
#!/usr/bin/env bash
set -e
echo "set-default has been renamed to default" >&2
rbenv-default "$@"
{ echo "rbenv: warning: \`set-default' has been renamed to \`default'"
echo " and will be removed in v0.3.0"
echo
} >&2
exec rbenv-default "$@"

View file

@ -1,5 +1,9 @@
#!/usr/bin/env bash
set -e
echo "set-local has been renamed to local" >&2
rbenv-local "$@"
{ echo "rbenv: warning: \`set-local' has been renamed to \`local'"
echo " and will be removed in v0.3.0"
echo
} >&2
exec rbenv-local "$@"