lib/clamp/parameter/parsing.rb in clamp-0.6.5 vs lib/clamp/parameter/parsing.rb in clamp-1.0.0

- old
+ new

@@ -11,10 +11,10 @@ begin parameter.consume(remaining_arguments).each do |value| parameter.of(self).take(value) end rescue ArgumentError => e - signal_usage_error "parameter '#{parameter.name}': #{e.message}" + signal_usage_error Clamp.message(:parameter_argument_error, :param => parameter.name, :message => e.message) end end self.class.parameters.each do |parameter| parameter.of(self).default_from_environment