diff options
| author | 2020-06-04 02:46:09 +0200 | |
|---|---|---|
| committer | 2020-06-04 02:46:09 +0200 | |
| commit | bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e (patch) | |
| tree | 2583c0ccae9fa2f1b3606118b49bc530749777f9 /tools/idevicepair.c | |
| parent | e1cfe7f6d431b233a151a20b9efc8a8ccb34ab51 (diff) | |
| download | libimobiledevice-bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e.tar.gz libimobiledevice-bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e.tar.bz2 | |
Unify usage output in all tools and add bugreport URL
Diffstat (limited to 'tools/idevicepair.c')
| -rw-r--r-- | tools/idevicepair.c | 16 |
1 files changed, 10 insertions, 6 deletions
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) | |||
| 65 | char *name = NULL; | 65 | char *name = NULL; |
| 66 | 66 | ||
| 67 | name = strrchr(argv[0], '/'); | 67 | name = strrchr(argv[0], '/'); |
| 68 | printf("\n%s - Manage host pairings with devices and usbmuxd.\n\n", (name ? name + 1: argv[0])); | 68 | printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0])); |
| 69 | printf("Usage: %s [OPTIONS] COMMAND\n\n", (name ? name + 1: argv[0])); | 69 | printf("\n"); |
| 70 | printf(" Where COMMAND is one of:\n"); | 70 | printf("Manage host pairings with devices and usbmuxd.\n"); |
| 71 | printf("\n"); | ||
| 72 | printf("Where COMMAND is one of:\n"); | ||
| 71 | printf(" systembuid print the system buid of the usbmuxd host\n"); | 73 | printf(" systembuid print the system buid of the usbmuxd host\n"); |
| 72 | printf(" hostid print the host id for target device\n"); | 74 | printf(" hostid print the host id for target device\n"); |
| 73 | printf(" pair pair device with this host\n"); | 75 | printf(" pair pair device with this host\n"); |
| 74 | printf(" validate validate if device is paired with this host\n"); | 76 | printf(" validate validate if device is paired with this host\n"); |
| 75 | printf(" unpair unpair device with this host\n"); | 77 | printf(" unpair unpair device with this host\n"); |
| 76 | printf(" list list devices paired with this host\n\n"); | 78 | printf(" list list devices paired with this host\n"); |
| 77 | printf(" The following OPTIONS are accepted:\n"); | 79 | printf("\n"); |
| 80 | printf("The following OPTIONS are accepted:\n"); | ||
| 78 | printf(" -d, --debug enable communication debugging\n"); | 81 | printf(" -d, --debug enable communication debugging\n"); |
| 79 | printf(" -u, --udid UDID target specific device by UDID\n"); | 82 | printf(" -u, --udid UDID target specific device by UDID\n"); |
| 80 | printf(" -h, --help prints usage information\n"); | 83 | printf(" -h, --help prints usage information\n"); |
| 81 | printf("\n"); | 84 | printf("\n"); |
| 82 | printf("Homepage: <" PACKAGE_URL ">\n"); | 85 | printf("Homepage: <" PACKAGE_URL ">\n"); |
| 86 | printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n"); | ||
| 83 | } | 87 | } |
| 84 | 88 | ||
| 85 | static void parse_opts(int argc, char **argv) | 89 | static void parse_opts(int argc, char **argv) |
