mirror of
https://github.com/zhigang1992/synx.git
synced 2026-04-27 22:40:44 +08:00
add prune flag
This commit is contained in:
4
bin/synx
4
bin/synx
@@ -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
|
||||
Reference in New Issue
Block a user