mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-10-02 06:57:35 +00:00
Merge pull request #339 from naggety/master
Allow parsing empty values for options in CLI arguments
This commit is contained in:
+1
-1
@@ -89,7 +89,7 @@ if $0 == __FILE__
|
|||||||
options.merge! CMockConfig.load_config_file_from_yaml(arg.gsub(/^-o/, ''))
|
options.merge! CMockConfig.load_config_file_from_yaml(arg.gsub(/^-o/, ''))
|
||||||
elsif arg == '--skeleton'
|
elsif arg == '--skeleton'
|
||||||
options[:skeleton] = true
|
options[:skeleton] = true
|
||||||
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, Regexp.last_match(1), Regexp.last_match(2))
|
options = option_maker(options, Regexp.last_match(1), Regexp.last_match(2))
|
||||||
else
|
else
|
||||||
filelist << arg
|
filelist << arg
|
||||||
|
|||||||
Reference in New Issue
Block a user