From 678bf73fb0538e56996a42363581a7ec195cb7bd Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Sun, 20 Jul 2008 02:35:07 +0000 Subject: Added usage to ldid. git-svn-id: http://svn.telesphoreo.org/trunk@363 514c082c-b64e-11dc-b46d-3d985efe055d --- util/ldid.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'util') 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 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]); -- cgit v1.2.3