From bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 4 Jun 2020 02:46:09 +0200 Subject: Unify usage output in all tools and add bugreport URL --- tools/idevicepair.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'tools/idevicepair.c') diff --git a/tools/idevicepair.c b/tools/idevicepair.c index bc0f5d8..99c7b7c 100644 --- a/tools/idevicepair.c +++ b/tools/idevicepair.c @@ -65,21 +65,25 @@ static void print_usage(int argc, char **argv) char *name = NULL; name = strrchr(argv[0], '/'); - printf("\n%s - Manage host pairings with devices and usbmuxd.\n\n", (name ? name + 1: argv[0])); - printf("Usage: %s [OPTIONS] COMMAND\n\n", (name ? name + 1: argv[0])); - printf(" Where COMMAND is one of:\n"); + printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0])); + printf("\n"); + printf("Manage host pairings with devices and usbmuxd.\n"); + printf("\n"); + printf("Where COMMAND is one of:\n"); printf(" systembuid print the system buid of the usbmuxd host\n"); printf(" hostid print the host id for target device\n"); printf(" pair pair device with this host\n"); printf(" validate validate if device is paired with this host\n"); printf(" unpair unpair device with this host\n"); - printf(" list list devices paired with this host\n\n"); - printf(" The following OPTIONS are accepted:\n"); + printf(" list list devices paired with this host\n"); + printf("\n"); + printf("The following OPTIONS are accepted:\n"); printf(" -d, --debug enable communication debugging\n"); printf(" -u, --udid UDID target specific device by UDID\n"); printf(" -h, --help prints usage information\n"); printf("\n"); - printf("Homepage: <" PACKAGE_URL ">\n"); + printf("Homepage: <" PACKAGE_URL ">\n"); + printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n"); } static void parse_opts(int argc, char **argv) -- cgit v1.1-32-gdbae