diff options
author | Lee Jarvis <ljjarvis@gmail.com> | 2013-01-08 11:52:49 +0000 |
---|---|---|
committer | Lee Jarvis <ljjarvis@gmail.com> | 2013-01-08 11:52:49 +0000 |
commit | 0cc057d6f07f9bd82601f112e72fd312a3e268b7 (patch) | |
tree | b3f9ba3a0391d98accb22fd3a1d74b0ee69dcd59 | |
parent | 0ede01fe69518e2948f6500ac9d830a6890457fd (diff) | |
download | slop-0cc057d6f07f9bd82601f112e72fd312a3e268b7.tar.gz |
add deprecation for Slop::Commands
-rw-r--r-- | lib/slop/commands.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/slop/commands.rb b/lib/slop/commands.rb index 0e3184b..e62ef17 100644 --- a/lib/slop/commands.rb +++ b/lib/slop/commands.rb @@ -39,6 +39,10 @@ class Slop @banner = nil @triggered_command = nil + warn "[DEPRECATED] Slop::Commands is deprecated and will be removed in "\ + "Slop version 4. Check out http://injekt.github.com/slop/#commands for "\ + "a new implementation of commands." + if block_given? block.arity == 1 ? yield(self) : instance_eval(&block) end |