mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-06-05 21:15:20 +00:00
cleanup style
This commit is contained in:
+4
-5
@@ -87,16 +87,15 @@ if $0 == __FILE__
|
|||||||
options = {}
|
options = {}
|
||||||
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 == '--skeleton')
|
elsif arg == '--skeleton'
|
||||||
options[:skeleton] = true
|
options[:skeleton] = true
|
||||||
elsif (arg =~ /^--strippables=\"?(.*)\"?/)
|
elsif arg =~ /^--strippables=\"?(.*)\"?/
|
||||||
# --strippables are dealt with separately since the user is allowed to
|
# --strippables are dealt with separately since the user is allowed to
|
||||||
# enter any valid regular expression as argument
|
# enter any valid regular expression as argument
|
||||||
options = option_maker(options, 'strippables', Regexp.last_match(1))
|
options = option_maker(options, 'strippables', Regexp.last_match(1))
|
||||||
elsif (arg =~ /^--([a-zA-Z0-9._\\\/:\s]+)=
|
elsif arg =~ /^--([a-zA-Z0-9._\\\/:\s]+)=\"?([a-zA-Z0-9._\-\\\/:\s\;]*)\"?/x
|
||||||
\"?([a-zA-Z0-9._\-\\\/:\s\;]*)\"?/x)
|
|
||||||
options = option_maker(options, Regexp.last_match(1),
|
options = option_maker(options, Regexp.last_match(1),
|
||||||
Regexp.last_match(2))
|
Regexp.last_match(2))
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user