From 1d5c6531a27490bb9af332205a0528fcc502bb8d Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Thu, 18 Aug 2011 14:09:48 -0500 Subject: [PATCH] Improve deprecation notice --- libexec/rbenv-set-default | 8 ++++++-- libexec/rbenv-set-local | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/libexec/rbenv-set-default b/libexec/rbenv-set-default index cff1eb09..cf68d57e 100755 --- a/libexec/rbenv-set-default +++ b/libexec/rbenv-set-default @@ -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 "$@" diff --git a/libexec/rbenv-set-local b/libexec/rbenv-set-local index a93ec24e..28d5961f 100755 --- a/libexec/rbenv-set-local +++ b/libexec/rbenv-set-local @@ -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 "$@"