lib/thor/options.rb in josevalim-thor-0.10.8 vs lib/thor/options.rb in josevalim-thor-0.10.9
- old
+ new
@@ -58,10 +58,10 @@
@switches = switches.values.inject({}) do |mem, option|
@non_assigned_required << option if option.required?
if option.argument?
@non_assigned_arguments << option
- elsif option.default
+ elsif !option.default.nil?
@options[option.human_name] = option.default
end
# If there are no shortcuts specified, generate one using the first character
shorts = option.aliases.dup