From: Jay Freeman (saurik) Date: Sun, 20 Jul 2008 02:35:07 +0000 (+0000) Subject: Added usage to ldid. X-Git-Tag: v1.0.363^0 X-Git-Url: https://git.saurik.com/ldid.git/commitdiff_plain/a960f39234fdc2738d3ad2de3de785f4287b6cb9 Added usage to ldid. --- diff --git a/ldid.cpp b/ldid.cpp index 4b28403..869e849 100644 --- a/ldid.cpp +++ b/ldid.cpp @@ -316,7 +316,13 @@ int main(int argc, const char *argv[]) { std::vector files; - _assert(argc != 0); + if (argc == 1) { + fprintf(stderr, "usage: %s -S[entitlements.xml] \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]);