summaryrefslogtreecommitdiff
path: root/lib/mixlib/cli.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mixlib/cli.rb')
-rw-r--r--lib/mixlib/cli.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/mixlib/cli.rb b/lib/mixlib/cli.rb
index b3f108e..887d05f 100644
--- a/lib/mixlib/cli.rb
+++ b/lib/mixlib/cli.rb
@@ -231,15 +231,15 @@ module Mixlib
opt_args = build_option_arguments(opt_val)
opt_method = case opt_val[:on]
- when :on
- :on
- when :tail
- :on_tail
- when :head
- :on_head
- else
- raise ArgumentError, "You must pass :on, :tail, or :head to :on"
- end
+ when :on
+ :on
+ when :tail
+ :on_tail
+ when :head
+ :on_head
+ else
+ raise ArgumentError, "You must pass :on, :tail, or :head to :on"
+ end
parse_block =
Proc.new() do |c|