mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-16 23:29:57 +00:00
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:
+1
-1
@@ -77,7 +77,7 @@ if ($0 == __FILE__)
|
|||||||
filelist = []
|
filelist = []
|
||||||
ARGV.each do |arg|
|
ARGV.each do |arg|
|
||||||
if (arg =~ /^-o\"?([a-zA-Z0-9._\\\/:\s]+)\"?/)
|
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\;]+)\"?/)
|
elsif (arg =~ /^--([a-zA-Z0-9._\\\/:\s]+)=\"?([a-zA-Z0-9._\\\/:\s\;]+)\"?/)
|
||||||
options = option_maker(options, $1, $2)
|
options = option_maker(options, $1, $2)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user