lib/slather/command/coverage_command.rb in slather-2.4.4 vs lib/slather/command/coverage_command.rb in slather-2.4.5

- old
+ new

@@ -28,10 +28,11 @@ option ["--scheme"], "SCHEME", "The scheme for which the coverage was generated" option ["--configuration"], "CONFIGURATION", "The configuration for test that the project was set" option ["--workspace"], "WORKSPACE", "The workspace that the project was built in" option ["--binary-file"], "BINARY_FILE", "The binary file against the which the coverage will be run", :multivalued => true option ["--binary-basename"], "BINARY_BASENAME", "Basename of the file against which the coverage will be run", :multivalued => true + option ["--arch"], "ARCH", "Architecture to use from universal binaries" option ["--source-files"], "SOURCE_FILES", "A Dir.glob compatible pattern used to limit the lookup to specific source files. Ignored in gcov mode.", :multivalued => true option ["--decimals"], "DECIMALS", "The amount of decimals to use for % coverage reporting" def execute puts "Slathering..." @@ -47,10 +48,11 @@ setup_scheme setup_configuration setup_workspace setup_binary_file setup_binary_basename + setup_arch setup_source_files setup_decimals project.configure @@ -149,9 +151,13 @@ project.binary_file = binary_file_list if !binary_file_list.empty? end def setup_binary_basename project.binary_basename = binary_basename_list if !binary_basename_list.empty? + end + + def setup_arch + project.arch = arch end def setup_source_files project.source_files = source_files_list if !source_files_list.empty? end