summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-03-21 22:01:10 +0100
committerGravatar Martin Szulecki2014-03-21 22:01:10 +0100
commit6b1482af7f3a795c4221f979acb8d694b6a4a680 (patch)
treefc29ceb6981959c3735e9e1f319a327ac825400c
parente621f084bcae8a6d3ab6431c9cfb144bd6218992 (diff)
downloadlibimobiledevice-6b1482af7f3a795c4221f979acb8d694b6a4a680.tar.gz
libimobiledevice-6b1482af7f3a795c4221f979acb8d694b6a4a680.tar.bz2
idevicepair: Synchronize usage between tool output and man page
-rw-r--r--docs/idevicepair.121
-rw-r--r--tools/idevicepair.c12
2 files changed, 19 insertions, 14 deletions
diff --git a/docs/idevicepair.1 b/docs/idevicepair.1
index bf2c56d..836d524 100644
--- a/docs/idevicepair.1
+++ b/docs/idevicepair.1
@@ -1,13 +1,13 @@
1.TH "idevicepair" 1 1.TH "idevicepair" 1
2.SH NAME 2.SH NAME
3idevicepair \- Manage pairings with devices and this host. 3idevicepair \- Manage host pairings with devices and usbmuxd.
4.SH SYNOPSIS 4.SH SYNOPSIS
5.B idevicepair 5.B idevicepair
6[OPTIONS] COMMAND 6[OPTIONS] COMMAND
7 7
8.SH DESCRIPTION 8.SH DESCRIPTION
9 9
10Manage pairings with devices and this host. 10Manage host pairings with devices and usbmuxd.
11 11
12.SH OPTIONS 12.SH OPTIONS
13.TP 13.TP
@@ -22,22 +22,27 @@ prints usage information.
22 22
23.SH COMMANDS 23.SH COMMANDS
24.TP 24.TP
25.B systembuid
26print the system buid of the usbmuxd host.
27.TP
25.B hostid 28.B hostid
26print the host id of this computer. 29print the host id for target device.
27.TP 30.TP
28.B pair 31.B pair
29pair device with this computer. 32pair device with this host.
30.TP 33.TP
31.B validate 34.B validate
32validate if device is paired with this computer. 35validate if device is paired with this host.
33.TP 36.TP
34.B unpair 37.B unpair
35unpair device with this computer. 38unpair device with this host.
36.TP 39.TP
37.B list 40.B list
38list devices paired with this computer. 41list devices paired with this host.
39 42
40.SH AUTHORS 43.SH AUTHORS
41Nikias Bassen 44Nikias Bassen
42 45
43Man page written to conform with Debian by Julien Lavergne. 46Martin Szulecki
47
48Julien Lavergne
diff --git a/tools/idevicepair.c b/tools/idevicepair.c
index 8fc1148..d304764 100644
--- a/tools/idevicepair.c
+++ b/tools/idevicepair.c
@@ -56,15 +56,15 @@ static void print_usage(int argc, char **argv)
56 char *name = NULL; 56 char *name = NULL;
57 57
58 name = strrchr(argv[0], '/'); 58 name = strrchr(argv[0], '/');
59 printf("\n%s - Manage pairings with devices and this host.\n\n", (name ? name + 1: argv[0])); 59 printf("\n%s - Manage host pairings with devices and usbmuxd.\n\n", (name ? name + 1: argv[0]));
60 printf("Usage: %s [OPTIONS] COMMAND\n\n", (name ? name + 1: argv[0])); 60 printf("Usage: %s [OPTIONS] COMMAND\n\n", (name ? name + 1: argv[0]));
61 printf(" Where COMMAND is one of:\n"); 61 printf(" Where COMMAND is one of:\n");
62 printf(" systembuid print the system buid of this computer\n"); 62 printf(" systembuid print the system buid of the usbmuxd host\n");
63 printf(" hostid print the host id for target device\n"); 63 printf(" hostid print the host id for target device\n");
64 printf(" pair pair device with this computer\n"); 64 printf(" pair pair device with this host\n");
65 printf(" validate validate if device is paired with this computer\n"); 65 printf(" validate validate if device is paired with this host\n");
66 printf(" unpair unpair device with this computer\n"); 66 printf(" unpair unpair device with this host\n");
67 printf(" list list devices paired with this computer\n\n"); 67 printf(" list list devices paired with this host\n\n");
68 printf(" The following OPTIONS are accepted:\n"); 68 printf(" The following OPTIONS are accepted:\n");
69 printf(" -d, --debug enable communication debugging\n"); 69 printf(" -d, --debug enable communication debugging\n");
70 printf(" -u, --udid UDID target specific device by its 40-digit device UDID\n"); 70 printf(" -u, --udid UDID target specific device by its 40-digit device UDID\n");