choosy 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/VERSION.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  date: 28/03/2011
3
3
  version:
4
- tiny: 1
4
+ tiny: 2
5
5
  major: 0
6
6
  minor: 4
@@ -134,7 +134,7 @@ module Choosy::DSL
134
134
  h.desc msg
135
135
 
136
136
  h.validate do
137
- raise Choosy::HelpCalled.new(@name)
137
+ raise Choosy::HelpCalled.new(:help_option)
138
138
  end
139
139
 
140
140
  evaluate_option_builder!(h, &block)
@@ -232,7 +232,6 @@ module Choosy::Printing
232
232
  end
233
233
 
234
234
  option_indent = ' ' * (optionlen + indent.length + offset.length)
235
- puts optionlen
236
235
  cmd_indent = ' ' * (cmdlen + indent.length + offset.length)
237
236
  [cmd_indent, option_indent, prefixes]
238
237
  end
@@ -66,7 +66,7 @@ module Choosy
66
66
  def handle_help(hc)
67
67
  command_name = hc.message
68
68
 
69
- if command_name == Choosy::DSL::SuperCommandBuilder::SUPER
69
+ if command_name == :help_option || command_name == Choosy::DSL::SuperCommandBuilder::SUPER
70
70
  printer.print!(self)
71
71
  else
72
72
  builder = command_builders[command_name]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 1
9
- version: 0.4.1
8
+ - 2
9
+ version: 0.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Gabe McArthur