From 6e7a0b9be754a9c4d78ffbd9c611b4f39bcce587 Mon Sep 17 00:00:00 2001 From: John Gunnison Date: Fri, 24 Apr 2015 15:51:22 -0700 Subject: [PATCH] Support dashes in command line option values --- lib/cmock.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmock.rb b/lib/cmock.rb index 1695059..1727815 100644 --- a/lib/cmock.rb +++ b/lib/cmock.rb @@ -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