]> git.saurik.com Git - ldid.git/commitdiff
Added usage to ldid. v1.0.363
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 20 Jul 2008 02:35:07 +0000 (02:35 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 20 Jul 2008 02:35:07 +0000 (02:35 +0000)
ldid.cpp

index 4b284034dc79e64ebaac62612209ca917d62ad0a..869e849fe07382a9ce6fbf964e0a9165748ccb35 100644 (file)
--- a/ldid.cpp
+++ b/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]);