cleanup style

This commit is contained in:
Mark VanderVoord
2021-01-16 22:20:16 -05:00
parent 38d6dccc8e
commit dcde998087
+4 -5
View File
@@ -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