summaryrefslogtreecommitdiffstats
path: root/tools/idevicenotificationproxy.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-04 02:46:09 +0200
committerGravatar Martin Szulecki2020-06-04 02:46:09 +0200
commitbc2a1554dfeeb8c7e20d1c3b80e26ec69759743e (patch)
tree2583c0ccae9fa2f1b3606118b49bc530749777f9 /tools/idevicenotificationproxy.c
parente1cfe7f6d431b233a151a20b9efc8a8ccb34ab51 (diff)
downloadlibimobiledevice-bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e.tar.gz
libimobiledevice-bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e.tar.bz2
Unify usage output in all tools and add bugreport URL
Diffstat (limited to 'tools/idevicenotificationproxy.c')
-rw-r--r--tools/idevicenotificationproxy.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/idevicenotificationproxy.c b/tools/idevicenotificationproxy.c
index 72b406c..45744bc 100644
--- a/tools/idevicenotificationproxy.c
+++ b/tools/idevicenotificationproxy.c
@@ -63,17 +63,20 @@ static void print_usage(int argc, char **argv)
63 63
64 name = strrchr(argv[0], '/'); 64 name = strrchr(argv[0], '/');
65 printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0])); 65 printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0]));
66 printf("Post or observe notifications on a device.\n\n"); 66 printf("\n");
67 printf(" Where COMMAND is one of:\n"); 67 printf("Post or observe notifications on a device.\n");
68 printf("\n");
69 printf("Where COMMAND is one of:\n");
68 printf(" post ID [...]\t\tpost notification IDs to device and exit\n"); 70 printf(" post ID [...]\t\tpost notification IDs to device and exit\n");
69 printf(" observe ID [...]\tobserve notification IDs in the foreground until CTRL+C or signal is received\n"); 71 printf(" observe ID [...]\tobserve notification IDs in the foreground until CTRL+C or signal is received\n");
70 printf("\n"); 72 printf("\n");
71 printf(" The following OPTIONS are accepted:\n"); 73 printf("The following OPTIONS are accepted:\n");
72 printf(" -d, --debug\t\tenable communication debugging\n"); 74 printf(" -d, --debug\t\tenable communication debugging\n");
73 printf(" -u, --udid UDID\ttarget specific device by UDID\n"); 75 printf(" -u, --udid UDID\ttarget specific device by UDID\n");
74 printf(" -h, --help\t\tprints usage information\n"); 76 printf(" -h, --help\t\tprints usage information\n");
75 printf("\n"); 77 printf("\n");
76 printf("Homepage: <" PACKAGE_URL ">\n"); 78 printf("Homepage: <" PACKAGE_URL ">\n");
79 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
77} 80}
78 81
79static void notify_cb(const char *notification, void *user_data) 82static void notify_cb(const char *notification, void *user_data)