Merge pull request #54 from johngun3/support_dashes_in_option_values

Support dashes in command line option values (Thanks for the patch, johngun3. Thanks for the reminder, combsjy)
This commit is contained in:
Mark VanderVoord
2016-01-05 17:18:48 -05:00
+1 -1
View File
@@ -78,7 +78,7 @@ if ($0 == __FILE__)
ARGV.each do |arg|
if (arg =~ /^-o\"?([a-zA-Z0-9._\\\/:\s]+)\"?/)
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)
else
filelist << arg