lib/clamp/parameter/parsing.rb in clamp-0.6.1 vs lib/clamp/parameter/parsing.rb in clamp-0.6.2
- old
+ new
@@ -8,10 +8,10 @@
def parse_parameters
self.class.parameters.each do |parameter|
begin
parameter.consume(remaining_arguments).each do |value|
- parameter.of(self).write(value)
+ parameter.of(self).take(value)
end
rescue ArgumentError => e
signal_usage_error "parameter '#{parameter.name}': #{e.message}"
end
end