lib/kafo/kafo_configure.rb in kafo-0.2.0 vs lib/kafo/kafo_configure.rb in kafo-0.2.1
- old
+ new
@@ -197,11 +197,10 @@
end
def parse_app_arguments
self.class.app_options.each do |option|
name = option.attribute_name
- name = "#{name}?" if option.flag?
- value = send(name)
+ value = send(option.flag? ? "#{name}?" : name)
config.app[name.to_sym] = value.nil? ? option.default_value : value
end
end
def parse_cli_arguments