add prune flag

This commit is contained in:
Mark Larsen
2014-05-27 19:25:50 -07:00
parent a1f2d45511
commit cd20d2da8d

View File

@@ -6,11 +6,11 @@ require File.join(File.dirname(__FILE__), '..', 'lib', 'synx')
Clamp do
parameter "xcodeproj", "Path to the xcodeproj", :attribute_name => :xcodeproj_path
option "--prune", :flag, "remove source files and image resources that are not referenced by the the xcode project"
option ["--prune", "-p"], :flag, "remove source files and image resources that are not referenced by the the xcode project", :attribute_name => :prune
def execute
project = Synx::Project.open(xcodeproj_path)
project.sync(:prune => prune)
project.sync(:prune => prune?)
end
end