summaryrefslogtreecommitdiff
path: root/util/ldid.cpp
diff options
context:
space:
mode:
authorJay Freeman <saurik@saurik.com>2008-07-20 02:35:07 +0000
committerJay Freeman <saurik@saurik.com>2008-07-20 02:35:07 +0000
commit678bf73fb0538e56996a42363581a7ec195cb7bd (patch)
tree6a6e407c3898bbbda4a9ffcbf78baf8bd43cfe51 /util/ldid.cpp
parent09f2c4e0e6ccacfd988bb572c6c8b7240d2b534a (diff)
Added usage to ldid.
git-svn-id: http://svn.telesphoreo.org/trunk@363 514c082c-b64e-11dc-b46d-3d985efe055d
Diffstat (limited to 'util/ldid.cpp')
-rw-r--r--util/ldid.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/util/ldid.cpp b/util/ldid.cpp
index 4b284034d..869e849fe 100644
--- a/util/ldid.cpp
+++ b/util/ldid.cpp
@@ -316,7 +316,13 @@ int main(int argc, const char *argv[]) {
std::vector<std::string> files;
- _assert(argc != 0);
+ if (argc == 1) {
+ fprintf(stderr, "usage: %s -S[entitlements.xml] <binary>\n", argv[0]);
+ fprintf(stderr, " %s -S cat\n", argv[0]);
+ fprintf(stderr, " %s -Stfp.xml gdb\n", argv[0]);
+ exit(0);
+ }
+
for (int argi(1); argi != argc; ++argi)
if (argv[argi][0] != '-')
files.push_back(argv[argi]);