lib/clamp/parameter/parsing.rb in clamp-0.1.7 vs lib/clamp/parameter/parsing.rb in clamp-0.1.8
- old
+ new
@@ -8,10 +8,10 @@
def parse_parameters
self.class.parameters.each do |parameter|
begin
value = parameter.consume(remaining_arguments)
- send("#{parameter.attribute_name}=", value)
+ send("#{parameter.attribute_name}=", value) unless value.nil?
rescue ArgumentError => e
signal_usage_error "parameter '#{parameter.name}': #{e.message}"
end
end