Merge pull request #35 from jlesage/options_fix

Properly merge options. (Thanks SO MUCH. I can't believe I missed that one)
This commit is contained in:
Mark VanderVoord
2014-05-22 08:57:23 -04:00
+1 -1
View File
@@ -77,7 +77,7 @@ if ($0 == __FILE__)
filelist = []
ARGV.each do |arg|
if (arg =~ /^-o\"?([a-zA-Z0-9._\\\/:\s]+)\"?/)
options.merge CMockConfig.load_config_file_from_yaml( arg.gsub(/^-o/,'') )
options.merge! CMockConfig.load_config_file_from_yaml( arg.gsub(/^-o/,'') )
elsif (arg =~ /^--([a-zA-Z0-9._\\\/:\s]+)=\"?([a-zA-Z0-9._\\\/:\s\;]+)\"?/)
options = option_maker(options, $1, $2)
else