Skip to content

Commit

Permalink
add argument options for xUnique
Browse files Browse the repository at this point in the history
  • Loading branch information
临寒 committed Aug 6, 2014
1 parent e68723b commit 93599c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ As you may know, the [`UUID`](http://www.ietf.org/rfc/rfc4122.txt) generated by
4. In all your branches, uniquify `project.pbxproj` file in either way:
* make some changes and commit. Try to push, git hook would be triggered
* manually run script: `python path/to/xUnique.py path/to/MyProject.xcodeproj` and then committing changes.
5. All Done;)
5. If you want to use part of xUnique functions, use below options in arguments:
* `-v`: print verbose output
* `-u`: uniquify project file, that is, replace UUID to MD5 digest
* `-s`: sort project file inlcuding `children` list, `files` list, `PBXFileReference` list and `PBXBuildFile`
* if neither `-u` nor `-s` exists, execute both uniquify and sort

### Examples
------------
Expand Down
2 changes: 1 addition & 1 deletion xUnique.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def __unique_build_file(self, parent_hex, build_file_hex):


def main(sys_args):
usage = "usage: %prog [[-u|--unique]|[-s|--sort (24|32)]] path/to/Project.xcodeproj"
usage = "usage: %prog [-v|-verbose][-u|--unique][-s|--sort] path/to/Project.xcodeproj"
description = "By default, without any option, xUnique uniquify and sort the project file."
parser = OptionParser(usage=usage, description=description)
parser.add_option("-v", "--verbose",
Expand Down

0 comments on commit 93599c5

Please sign in to comment.