summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/idevice_id.c25
-rw-r--r--tools/idevicebackup.c14
-rw-r--r--tools/idevicebackup2.c11
-rw-r--r--tools/idevicecrashreport.c8
-rw-r--r--tools/idevicedate.c11
-rw-r--r--tools/idevicedebug.c11
-rw-r--r--tools/idevicedebugserverproxy.c8
-rw-r--r--tools/idevicediagnostics.c16
-rw-r--r--tools/ideviceenterrecovery.c8
-rw-r--r--tools/ideviceimagemounter.c10
-rw-r--r--tools/ideviceinfo.c30
-rw-r--r--tools/idevicename.c5
-rw-r--r--tools/idevicenotificationproxy.c11
-rw-r--r--tools/idevicepair.c16
-rw-r--r--tools/ideviceprovision.c14
-rw-r--r--tools/idevicescreenshot.c11
-rw-r--r--tools/idevicesetlocation.c15
-rw-r--r--tools/idevicesyslog.c51
18 files changed, 172 insertions, 103 deletions
diff --git a/tools/idevice_id.c b/tools/idevice_id.c
index b746491..7987705 100644
--- a/tools/idevice_id.c
+++ b/tools/idevice_id.c
@@ -40,16 +40,21 @@ static void print_usage(int argc, char **argv, int is_error)
40 name = strrchr(argv[0], '/'); 40 name = strrchr(argv[0], '/');
41 fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS] [UDID]\n", (name ? name + 1: argv[0])); 41 fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS] [UDID]\n", (name ? name + 1: argv[0]));
42 fprintf(is_error ? stderr : stdout, 42 fprintf(is_error ? stderr : stdout,
43 "Prints device name or a list of attached devices.\n\n" \ 43 "\n" \
44 " If UDID is given, the name of the connected device with that UDID" \ 44 "Prints device name or a list of attached devices.\n" \
45 " will be retrieved.\n\n" \ 45 "\n" \
46 " -l, --list list UDIDs of all devices attached via USB\n" \ 46 " If UDID is given, the name of the connected device with that UDID" \
47 " -n, --network list UDIDs of all devices available via network\n" \ 47 " will be retrieved.\n" \
48 " -d, --debug enable communication debugging\n" \ 48 "\n" \
49 " -h, --help prints usage information\n" \ 49 "OPTIONS:\n" \
50 "\n" \ 50 " -l, --list list UDIDs of all devices attached via USB\n" \
51 "Homepage: <" PACKAGE_URL ">\n" 51 " -n, --network list UDIDs of all devices available via network\n" \
52 ); 52 " -d, --debug enable communication debugging\n" \
53 " -h, --help prints usage information\n" \
54 "\n" \
55 "Homepage: <" PACKAGE_URL ">\n" \
56 "Bug Reports: <" PACKAGE_BUGREPORT ">\n"
57 );
53} 58}
54 59
55int main(int argc, char **argv) 60int main(int argc, char **argv)
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c
index de08295..c55301c 100644
--- a/tools/idevicebackup.c
+++ b/tools/idevicebackup.c
@@ -665,16 +665,20 @@ static void print_usage(int argc, char **argv)
665 char *name = NULL; 665 char *name = NULL;
666 name = strrchr(argv[0], '/'); 666 name = strrchr(argv[0], '/');
667 printf("Usage: %s [OPTIONS] CMD [DIRECTORY]\n", (name ? name + 1: argv[0])); 667 printf("Usage: %s [OPTIONS] CMD [DIRECTORY]\n", (name ? name + 1: argv[0]));
668 printf("Create or restore backup from the current or specified directory.\n\n"); 668 printf("\n");
669 printf("commands:\n"); 669 printf("Create or restore backup from the current or specified directory.\n");
670 printf("\n");
671 printf("CMD:\n");
670 printf(" backup\tSaves a device backup into DIRECTORY\n"); 672 printf(" backup\tSaves a device backup into DIRECTORY\n");
671 printf(" restore\tRestores a device backup from DIRECTORY.\n\n"); 673 printf(" restore\tRestores a device backup from DIRECTORY.\n");
672 printf("options:\n"); 674 printf("\n");
675 printf("OPTIONS:\n");
673 printf(" -d, --debug\t\tenable communication debugging\n"); 676 printf(" -d, --debug\t\tenable communication debugging\n");
674 printf(" -u, --udid UDID\ttarget specific device by UDID\n"); 677 printf(" -u, --udid UDID\ttarget specific device by UDID\n");
675 printf(" -h, --help\t\tprints usage information\n"); 678 printf(" -h, --help\t\tprints usage information\n");
676 printf("\n"); 679 printf("\n");
677 printf("Homepage: <" PACKAGE_URL ">\n"); 680 printf("Homepage: <" PACKAGE_URL ">\n");
681 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
678} 682}
679 683
680int main(int argc, char *argv[]) 684int main(int argc, char *argv[])
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c
index c2f04c2..382efc6 100644
--- a/tools/idevicebackup2.c
+++ b/tools/idevicebackup2.c
@@ -1403,8 +1403,10 @@ static void print_usage(int argc, char **argv)
1403 char *name = NULL; 1403 char *name = NULL;
1404 name = strrchr(argv[0], '/'); 1404 name = strrchr(argv[0], '/');
1405 printf("Usage: %s [OPTIONS] CMD [CMDOPTIONS] DIRECTORY\n", (name ? name + 1: argv[0])); 1405 printf("Usage: %s [OPTIONS] CMD [CMDOPTIONS] DIRECTORY\n", (name ? name + 1: argv[0]));
1406 printf("Create or restore backup from the current or specified directory.\n\n"); 1406 printf("\n");
1407 printf("commands:\n"); 1407 printf("Create or restore backup from the current or specified directory.\n");
1408 printf("\n");
1409 printf("CMD:\n");
1408 printf(" backup\tcreate backup for the device\n"); 1410 printf(" backup\tcreate backup for the device\n");
1409 printf(" --full\t\tforce full backup from device.\n"); 1411 printf(" --full\t\tforce full backup from device.\n");
1410 printf(" restore\trestore last backup to the device\n"); 1412 printf(" restore\trestore last backup to the device\n");
@@ -1424,14 +1426,15 @@ static void print_usage(int argc, char **argv)
1424 printf(" NOTE: passwords will be requested in interactive mode if omitted\n"); 1426 printf(" NOTE: passwords will be requested in interactive mode if omitted\n");
1425 printf(" cloud on|off\tenable or disable cloud use (requires iCloud account)\n"); 1427 printf(" cloud on|off\tenable or disable cloud use (requires iCloud account)\n");
1426 printf("\n"); 1428 printf("\n");
1427 printf("options:\n"); 1429 printf("OPTIONS:\n");
1428 printf(" -d, --debug\t\tenable communication debugging\n"); 1430 printf(" -d, --debug\t\tenable communication debugging\n");
1429 printf(" -u, --udid UDID\ttarget specific device by UDID\n"); 1431 printf(" -u, --udid UDID\ttarget specific device by UDID\n");
1430 printf(" -s, --source UDID\tuse backup data from device specified by UDID\n"); 1432 printf(" -s, --source UDID\tuse backup data from device specified by UDID\n");
1431 printf(" -i, --interactive\trequest passwords interactively\n"); 1433 printf(" -i, --interactive\trequest passwords interactively\n");
1432 printf(" -h, --help\t\tprints usage information\n"); 1434 printf(" -h, --help\t\tprints usage information\n");
1433 printf("\n"); 1435 printf("\n");
1434 printf("Homepage: <" PACKAGE_URL ">\n"); 1436 printf("Homepage: <" PACKAGE_URL ">\n");
1437 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
1435} 1438}
1436 1439
1437#define DEVICE_VERSION(maj, min, patch) (((maj & 0xFF) << 16) | ((min & 0xFF) << 8) | (patch & 0xFF)) 1440#define DEVICE_VERSION(maj, min, patch) (((maj & 0xFF) << 16) | ((min & 0xFF) << 8) | (patch & 0xFF))
diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c
index 5d2e21d..8600ad1 100644
--- a/tools/idevicecrashreport.c
+++ b/tools/idevicecrashreport.c
@@ -302,14 +302,18 @@ static void print_usage(int argc, char **argv)
302 302
303 name = strrchr(argv[0], '/'); 303 name = strrchr(argv[0], '/');
304 printf("Usage: %s [OPTIONS] DIRECTORY\n", (name ? name + 1: argv[0])); 304 printf("Usage: %s [OPTIONS] DIRECTORY\n", (name ? name + 1: argv[0]));
305 printf("Move crash reports from device to a local DIRECTORY.\n\n"); 305 printf("\n");
306 printf("Move crash reports from device to a local DIRECTORY.\n");
307 printf("\n");
308 printf("OPTIONS:\n");
306 printf(" -e, --extract\t\textract raw crash report into separate '.crash' file\n"); 309 printf(" -e, --extract\t\textract raw crash report into separate '.crash' file\n");
307 printf(" -k, --keep\t\tcopy but do not remove crash reports from device\n"); 310 printf(" -k, --keep\t\tcopy but do not remove crash reports from device\n");
308 printf(" -d, --debug\t\tenable communication debugging\n"); 311 printf(" -d, --debug\t\tenable communication debugging\n");
309 printf(" -u, --udid UDID\ttarget specific device by UDID\n"); 312 printf(" -u, --udid UDID\ttarget specific device by UDID\n");
310 printf(" -h, --help\t\tprints usage information\n"); 313 printf(" -h, --help\t\tprints usage information\n");
311 printf("\n"); 314 printf("\n");
312 printf("Homepage: <" PACKAGE_URL ">\n"); 315 printf("Homepage: <" PACKAGE_URL ">\n");
316 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
313} 317}
314 318
315int main(int argc, char* argv[]) 319int main(int argc, char* argv[])
diff --git a/tools/idevicedate.c b/tools/idevicedate.c
index 6dddc18..9c14fdf 100644
--- a/tools/idevicedate.c
+++ b/tools/idevicedate.c
@@ -49,16 +49,21 @@ static void print_usage(int argc, char **argv)
49 49
50 name = strrchr(argv[0], '/'); 50 name = strrchr(argv[0], '/');
51 printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); 51 printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
52 printf("Display the current date or set it on a device.\n\n"); 52 printf("\n");
53 printf("Display the current date or set it on a device.\n");
54 printf("\n");
53 printf("NOTE: Setting the time on iOS 6 and later is only supported\n"); 55 printf("NOTE: Setting the time on iOS 6 and later is only supported\n");
54 printf(" in the setup wizard screens before device activation.\n\n"); 56 printf(" in the setup wizard screens before device activation.\n");
57 printf("\n");
58 printf("OPTIONS:\n");
55 printf(" -d, --debug\t\tenable communication debugging\n"); 59 printf(" -d, --debug\t\tenable communication debugging\n");
56 printf(" -u, --udid UDID\ttarget specific device by UDID\n"); 60 printf(" -u, --udid UDID\ttarget specific device by UDID\n");
57 printf(" -s, --set TIMESTAMP\tset UTC time described by TIMESTAMP\n"); 61 printf(" -s, --set TIMESTAMP\tset UTC time described by TIMESTAMP\n");
58 printf(" -c, --sync\t\tset time of device to current system time\n"); 62 printf(" -c, --sync\t\tset time of device to current system time\n");
59 printf(" -h, --help\t\tprints usage information\n"); 63 printf(" -h, --help\t\tprints usage information\n");
60 printf("\n"); 64 printf("\n");
61 printf("Homepage: <" PACKAGE_URL ">\n"); 65 printf("Homepage: <" PACKAGE_URL ">\n");
66 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
62} 67}
63 68
64int main(int argc, char *argv[]) 69int main(int argc, char *argv[])
diff --git a/tools/idevicedebug.c b/tools/idevicedebug.c
index 71da0bf..b946d2c 100644
--- a/tools/idevicedebug.c
+++ b/tools/idevicedebug.c
@@ -186,17 +186,20 @@ static void print_usage(int argc, char **argv)
186 char *name = NULL; 186 char *name = NULL;
187 name = strrchr(argv[0], '/'); 187 name = strrchr(argv[0], '/');
188 printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0])); 188 printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0]));
189 printf("Interact with the debugserver service of a device.\n\n"); 189 printf("\n");
190 printf(" Where COMMAND is one of:\n"); 190 printf("Interact with the debugserver service of a device.\n");
191 printf("\n");
192 printf("Where COMMAND is one of:\n");
191 printf(" run BUNDLEID [ARGS...]\trun app with BUNDLEID and optional ARGS on device.\n"); 193 printf(" run BUNDLEID [ARGS...]\trun app with BUNDLEID and optional ARGS on device.\n");
192 printf("\n"); 194 printf("\n");
193 printf(" The following OPTIONS are accepted:\n"); 195 printf("The following OPTIONS are accepted:\n");
194 printf(" -e, --env NAME=VALUE\tset environment variable NAME to VALUE\n"); 196 printf(" -e, --env NAME=VALUE\tset environment variable NAME to VALUE\n");
195 printf(" -u, --udid UDID\ttarget specific device by UDID\n"); 197 printf(" -u, --udid UDID\ttarget specific device by UDID\n");
196 printf(" -d, --debug\t\tenable communication debugging\n"); 198 printf(" -d, --debug\t\tenable communication debugging\n");
197 printf(" -h, --help\t\tprints usage information\n"); 199 printf(" -h, --help\t\tprints usage information\n");
198 printf("\n"); 200 printf("\n");
199 printf("Homepage: <" PACKAGE_URL ">\n"); 201 printf("Homepage: <" PACKAGE_URL ">\n");
202 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
200} 203}
201 204
202int main(int argc, char *argv[]) 205int main(int argc, char *argv[])
diff --git a/tools/idevicedebugserverproxy.c b/tools/idevicedebugserverproxy.c
index e99d0bf..338a3c0 100644
--- a/tools/idevicedebugserverproxy.c
+++ b/tools/idevicedebugserverproxy.c
@@ -69,12 +69,16 @@ static void print_usage(int argc, char **argv)
69 69
70 name = strrchr(argv[0], '/'); 70 name = strrchr(argv[0], '/');
71 printf("Usage: %s [OPTIONS] <PORT>\n", (name ? name + 1: argv[0])); 71 printf("Usage: %s [OPTIONS] <PORT>\n", (name ? name + 1: argv[0]));
72 printf("Proxy debugserver connection from device to a local socket at PORT.\n\n"); 72 printf("\n");
73 printf("Proxy debugserver connection from device to a local socket at PORT.\n");
74 printf("\n");
75 printf("OPTIONS:\n");
73 printf(" -d, --debug\t\tenable communication debugging\n"); 76 printf(" -d, --debug\t\tenable communication debugging\n");
74 printf(" -u, --udid UDID\ttarget specific device by UDID\n"); 77 printf(" -u, --udid UDID\ttarget specific device by UDID\n");
75 printf(" -h, --help\t\tprints usage information\n"); 78 printf(" -h, --help\t\tprints usage information\n");
76 printf("\n"); 79 printf("\n");
77 printf("Homepage: <" PACKAGE_URL ">\n"); 80 printf("Homepage: <" PACKAGE_URL ">\n");
81 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
78} 82}
79 83
80static void *thread_device_to_client(void *data) 84static void *thread_device_to_client(void *data)
diff --git a/tools/idevicediagnostics.c b/tools/idevicediagnostics.c
index bff1e1d..f302d68 100644
--- a/tools/idevicediagnostics.c
+++ b/tools/idevicediagnostics.c
@@ -312,20 +312,24 @@ void print_usage(int argc, char **argv)
312{ 312{
313 char *name = NULL; 313 char *name = NULL;
314 name = strrchr(argv[0], '/'); 314 name = strrchr(argv[0], '/');
315 printf("Usage: %s COMMAND [OPTIONS]\n", (name ? name + 1: argv[0])); 315 printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0]));
316 printf("Use diagnostics interface of a device running iOS 4 or later.\n\n"); 316 printf("\n");
317 printf(" Where COMMAND is one of:\n"); 317 printf("Use diagnostics interface of a device running iOS 4 or later.\n");
318 printf("\n");
319 printf("Where COMMAND is one of:\n");
318 printf(" diagnostics [TYPE]\t\tprint diagnostics information from device by TYPE (All, WiFi, GasGauge, NAND)\n"); 320 printf(" diagnostics [TYPE]\t\tprint diagnostics information from device by TYPE (All, WiFi, GasGauge, NAND)\n");
319 printf(" mobilegestalt KEY [...]\tprint mobilegestalt keys passed as arguments separated by a space.\n"); 321 printf(" mobilegestalt KEY [...]\tprint mobilegestalt keys passed as arguments separated by a space.\n");
320 printf(" ioreg [PLANE]\t\t\tprint IORegistry of device, optionally by PLANE (IODeviceTree, IOPower, IOService) (iOS 5+ only)\n"); 322 printf(" ioreg [PLANE]\t\t\tprint IORegistry of device, optionally by PLANE (IODeviceTree, IOPower, IOService) (iOS 5+ only)\n");
321 printf(" ioregentry [KEY]\t\tprint IORegistry entry of device (AppleARMPMUCharger, ASPStorage, ...) (iOS 5+ only)\n"); 323 printf(" ioregentry [KEY]\t\tprint IORegistry entry of device (AppleARMPMUCharger, ASPStorage, ...) (iOS 5+ only)\n");
322 printf(" shutdown\t\t\tshutdown device\n"); 324 printf(" shutdown\t\t\tshutdown device\n");
323 printf(" restart\t\t\trestart device\n"); 325 printf(" restart\t\t\trestart device\n");
324 printf(" sleep\t\t\t\tput device into sleep mode (disconnects from host)\n\n"); 326 printf(" sleep\t\t\t\tput device into sleep mode (disconnects from host)\n");
325 printf(" The following OPTIONS are accepted:\n"); 327 printf("\n");
328 printf("The following OPTIONS are accepted:\n");
326 printf(" -d, --debug\t\tenable communication debugging\n"); 329 printf(" -d, --debug\t\tenable communication debugging\n");
327 printf(" -u, --udid UDID\ttarget specific device by UDID\n"); 330 printf(" -u, --udid UDID\ttarget specific device by UDID\n");
328 printf(" -h, --help\t\tprints usage information\n"); 331 printf(" -h, --help\t\tprints usage information\n");
329 printf("\n"); 332 printf("\n");
330 printf("Homepage: <" PACKAGE_URL ">\n"); 333 printf("Homepage: <" PACKAGE_URL ">\n");
334 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
331} 335}
diff --git a/tools/ideviceenterrecovery.c b/tools/ideviceenterrecovery.c
index ec9093b..868ee7d 100644
--- a/tools/ideviceenterrecovery.c
+++ b/tools/ideviceenterrecovery.c
@@ -40,11 +40,15 @@ static void print_usage(int argc, char **argv)
40 40
41 name = strrchr(argv[0], '/'); 41 name = strrchr(argv[0], '/');
42 printf("Usage: %s [OPTIONS] UDID\n", (name ? name + 1: argv[0])); 42 printf("Usage: %s [OPTIONS] UDID\n", (name ? name + 1: argv[0]));
43 printf("Makes a device with the supplied UDID enter recovery mode immediately.\n\n"); 43 printf("\n");
44 printf("Makes a device with the supplied UDID enter recovery mode immediately.\n");
45 printf("\n");
46 printf("OPTIONS:\n");
44 printf(" -d, --debug\t\tenable communication debugging\n"); 47 printf(" -d, --debug\t\tenable communication debugging\n");
45 printf(" -h, --help\t\tprints usage information\n"); 48 printf(" -h, --help\t\tprints usage information\n");
46 printf("\n"); 49 printf("\n");
47 printf("Homepage: <" PACKAGE_URL ">\n"); 50 printf("Homepage: <" PACKAGE_URL ">\n");
51 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
48} 52}
49 53
50int main(int argc, char *argv[]) 54int main(int argc, char *argv[])
diff --git a/tools/ideviceimagemounter.c b/tools/ideviceimagemounter.c
index 74df5e4..3f6f42e 100644
--- a/tools/ideviceimagemounter.c
+++ b/tools/ideviceimagemounter.c
@@ -64,8 +64,11 @@ static void print_usage(int argc, char **argv)
64 char *name = NULL; 64 char *name = NULL;
65 65
66 name = strrchr(argv[0], '/'); 66 name = strrchr(argv[0], '/');
67 printf("Usage: %s [OPTIONS] IMAGE_FILE IMAGE_SIGNATURE_FILE\n\n", (name ? name + 1: argv[0])); 67 printf("Usage: %s [OPTIONS] IMAGE_FILE IMAGE_SIGNATURE_FILE\n", (name ? name + 1: argv[0]));
68 printf("Mounts the specified disk image on the device.\n\n"); 68 printf("\n");
69 printf("Mounts the specified disk image on the device.\n");
70 printf("\n");
71 printf("OPTIONS:\n");
69 printf(" -u, --udid UDID\ttarget specific device by UDID\n"); 72 printf(" -u, --udid UDID\ttarget specific device by UDID\n");
70 printf(" -l, --list\t\tList mount information\n"); 73 printf(" -l, --list\t\tList mount information\n");
71 printf(" -t, --imagetype\tImage type to use, default is 'Developer'\n"); 74 printf(" -t, --imagetype\tImage type to use, default is 'Developer'\n");
@@ -73,7 +76,8 @@ static void print_usage(int argc, char **argv)
73 printf(" -d, --debug\t\tenable communication debugging\n"); 76 printf(" -d, --debug\t\tenable communication debugging\n");
74 printf(" -h, --help\t\tprints usage information\n"); 77 printf(" -h, --help\t\tprints usage information\n");
75 printf("\n"); 78 printf("\n");
76 printf("Homepage: <" PACKAGE_URL ">\n"); 79 printf("Homepage: <" PACKAGE_URL ">\n");
80 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
77} 81}
78 82
79static void parse_opts(int argc, char **argv) 83static void parse_opts(int argc, char **argv)
diff --git a/tools/ideviceinfo.c b/tools/ideviceinfo.c
index f52cd00..0697990 100644
--- a/tools/ideviceinfo.c
+++ b/tools/ideviceinfo.c
@@ -93,24 +93,28 @@ static void print_usage(int argc, char **argv, int is_error)
93 name = strrchr(argv[0], '/'); 93 name = strrchr(argv[0], '/');
94 fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); 94 fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
95 fprintf(is_error ? stderr : stdout, 95 fprintf(is_error ? stderr : stdout,
96 "Show information about a connected device.\n\n" \ 96 "\n" \
97 " -s, --simple use a simple connection to avoid auto-pairing with the device\n" \ 97 "Show information about a connected device.\n" \
98 " -u, --udid UDID target specific device by UDID\n" \ 98 "\n" \
99 " -n, --network connect to network device even if available via USB\n" \ 99 "OPTIONS:\n" \
100 " -q, --domain NAME set domain of query to NAME. Default: None\n" \ 100 " -s, --simple use a simple connection to avoid auto-pairing with the device\n" \
101 " -k, --key NAME only query key specified by NAME. Default: All keys.\n" \ 101 " -u, --udid UDID target specific device by UDID\n" \
102 " -x, --xml output information as xml plist instead of key/value pairs\n" \ 102 " -n, --network connect to network device even if available via USB\n" \
103 " -h, --help prints usage information\n" \ 103 " -q, --domain NAME set domain of query to NAME. Default: None\n" \
104 " -d, --debug enable communication debugging\n" \ 104 " -k, --key NAME only query key specified by NAME. Default: All keys.\n" \
105 "\n" 105 " -x, --xml output information as xml plist instead of key/value pairs\n" \
106 " -h, --help prints usage information\n" \
107 " -d, --debug enable communication debugging\n" \
108 "\n"
106 ); 109 );
107 fprintf(is_error ? stderr : stdout, " Known domains are:\n\n"); 110 fprintf(is_error ? stderr : stdout, "Known domains are:\n\n");
108 while (domains[i] != NULL) { 111 while (domains[i] != NULL) {
109 fprintf(is_error ? stderr : stdout, " %s\n", domains[i++]); 112 fprintf(is_error ? stderr : stdout, " %s\n", domains[i++]);
110 } 113 }
111 fprintf(is_error ? stderr : stdout, 114 fprintf(is_error ? stderr : stdout,
112 "\n" \ 115 "\n" \
113 "Homepage: <" PACKAGE_URL ">\n" 116 "Homepage: <" PACKAGE_URL ">\n"
117 "Bug Reports: <" PACKAGE_BUGREPORT ">\n"
114 ); 118 );
115} 119}
116 120
diff --git a/tools/idevicename.c b/tools/idevicename.c
index a66f5aa..af80dcc 100644
--- a/tools/idevicename.c
+++ b/tools/idevicename.c
@@ -38,13 +38,16 @@
38static void print_usage(void) 38static void print_usage(void)
39{ 39{
40 printf("Usage: idevicename [OPTIONS] [NAME]\n"); 40 printf("Usage: idevicename [OPTIONS] [NAME]\n");
41 printf("\n");
41 printf("Display the device name or set it to NAME if specified.\n"); 42 printf("Display the device name or set it to NAME if specified.\n");
42 printf("\n"); 43 printf("\n");
44 printf("OPTIONS:\n");
43 printf(" -d, --debug\t\tenable communication debugging\n"); 45 printf(" -d, --debug\t\tenable communication debugging\n");
44 printf(" -u, --udid UDID\ttarget specific device by UDID\n"); 46 printf(" -u, --udid UDID\ttarget specific device by UDID\n");
45 printf(" -h, --help\t\tprint usage information\n"); 47 printf(" -h, --help\t\tprint usage information\n");
46 printf("\n"); 48 printf("\n");
47 printf("Homepage: <" PACKAGE_URL ">\n"); 49 printf("Homepage: <" PACKAGE_URL ">\n");
50 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
48} 51}
49 52
50int main(int argc, char** argv) 53int main(int argc, char** argv)
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)
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
85static void parse_opts(int argc, char **argv) 89static void parse_opts(int argc, char **argv)
diff --git a/tools/ideviceprovision.c b/tools/ideviceprovision.c
index 7e8367a..4b96821 100644
--- a/tools/ideviceprovision.c
+++ b/tools/ideviceprovision.c
@@ -50,8 +50,10 @@ static void print_usage(int argc, char **argv)
50 50
51 name = strrchr(argv[0], '/'); 51 name = strrchr(argv[0], '/');
52 printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0])); 52 printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0]));
53 printf("Manage provisioning profiles on a device.\n\n"); 53 printf("\n");
54 printf(" Where COMMAND is one of:\n"); 54 printf("Manage provisioning profiles on a device.\n");
55 printf("\n");
56 printf("Where COMMAND is one of:\n");
55 printf(" install FILE\tInstalls the provisioning profile specified by FILE.\n"); 57 printf(" install FILE\tInstalls the provisioning profile specified by FILE.\n");
56 printf(" \tA valid .mobileprovision file is expected.\n"); 58 printf(" \tA valid .mobileprovision file is expected.\n");
57 printf(" list\t\tGet a list of all provisioning profiles on the device.\n"); 59 printf(" list\t\tGet a list of all provisioning profiles on the device.\n");
@@ -64,14 +66,16 @@ static void print_usage(int argc, char **argv)
64 printf(" remove UUID\tRemoves the provisioning profile identified by UUID.\n"); 66 printf(" remove UUID\tRemoves the provisioning profile identified by UUID.\n");
65 printf(" remove-all\tRemoves all installed provisioning profiles.\n"); 67 printf(" remove-all\tRemoves all installed provisioning profiles.\n");
66 printf(" dump FILE\tPrints detailed information about the provisioning profile\n"); 68 printf(" dump FILE\tPrints detailed information about the provisioning profile\n");
67 printf(" \tspecified by FILE.\n\n"); 69 printf(" \tspecified by FILE.\n");
68 printf(" The following OPTIONS are accepted:\n"); 70 printf("\n");
71 printf("The following OPTIONS are accepted:\n");
69 printf(" -d, --debug enable communication debugging\n"); 72 printf(" -d, --debug enable communication debugging\n");
70 printf(" -u, --udid UDID target specific device by UDID\n"); 73 printf(" -u, --udid UDID target specific device by UDID\n");
71 printf(" -x, --xml print XML output when using the 'dump' command\n"); 74 printf(" -x, --xml print XML output when using the 'dump' command\n");
72 printf(" -h, --help prints usage information\n"); 75 printf(" -h, --help prints usage information\n");
73 printf("\n"); 76 printf("\n");
74 printf("Homepage: <" PACKAGE_URL ">\n"); 77 printf("Homepage: <" PACKAGE_URL ">\n");
78 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
75} 79}
76 80
77enum { 81enum {
diff --git a/tools/idevicescreenshot.c b/tools/idevicescreenshot.c
index 38d323c..d91e8f4 100644
--- a/tools/idevicescreenshot.c
+++ b/tools/idevicescreenshot.c
@@ -157,15 +157,20 @@ void print_usage(int argc, char **argv)
157 157
158 name = strrchr(argv[0], '/'); 158 name = strrchr(argv[0], '/');
159 printf("Usage: %s [OPTIONS] [FILE]\n", (name ? name + 1: argv[0])); 159 printf("Usage: %s [OPTIONS] [FILE]\n", (name ? name + 1: argv[0]));
160 printf("\n");
160 printf("Gets a screenshot from a device.\n"); 161 printf("Gets a screenshot from a device.\n");
162 printf("\n");
161 printf("The screenshot is saved as a TIFF image with the given FILE name,\n"); 163 printf("The screenshot is saved as a TIFF image with the given FILE name,\n");
162 printf("where the default name is \"screenshot-DATE.tiff\", e.g.:\n"); 164 printf("where the default name is \"screenshot-DATE.tiff\", e.g.:\n");
163 printf(" ./screenshot-2013-12-31-23-59-59.tiff\n\n"); 165 printf(" ./screenshot-2013-12-31-23-59-59.tiff\n");
166 printf("\n");
164 printf("NOTE: A mounted developer disk image is required on the device, otherwise\n"); 167 printf("NOTE: A mounted developer disk image is required on the device, otherwise\n");
165 printf("the screenshotr service is not available.\n\n"); 168 printf("the screenshotr service is not available.\n");
169 printf("\n");
166 printf(" -d, --debug\t\tenable communication debugging\n"); 170 printf(" -d, --debug\t\tenable communication debugging\n");
167 printf(" -u, --udid UDID\ttarget specific device by UDID\n"); 171 printf(" -u, --udid UDID\ttarget specific device by UDID\n");
168 printf(" -h, --help\t\tprints usage information\n"); 172 printf(" -h, --help\t\tprints usage information\n");
169 printf("\n"); 173 printf("\n");
170 printf("Homepage: <" PACKAGE_URL ">\n"); 174 printf("Homepage: <" PACKAGE_URL ">\n");
175 printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n");
171} 176}
diff --git a/tools/idevicesetlocation.c b/tools/idevicesetlocation.c
index d2b8864..47fc7da 100644
--- a/tools/idevicesetlocation.c
+++ b/tools/idevicesetlocation.c
@@ -49,13 +49,14 @@ static void print_usage(int argc, char **argv, int is_error)
49 fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS] -- <LAT> <LONG>\n", bname); 49 fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS] -- <LAT> <LONG>\n", bname);
50 fprintf(is_error ? stderr : stdout, " %s [OPTIONS] reset\n", bname); 50 fprintf(is_error ? stderr : stdout, " %s [OPTIONS] reset\n", bname);
51 fprintf(is_error ? stderr : stdout, "\n" \ 51 fprintf(is_error ? stderr : stdout, "\n" \
52 "OPTIONS:\n" \ 52 "OPTIONS:\n" \
53 " -u, --udid UDID target specific device by UDID\n" \ 53 " -u, --udid UDID target specific device by UDID\n" \
54 " -n, --network connect to network device even if available via USB\n" \ 54 " -n, --network connect to network device even if available via USB\n" \
55 " -h, --help prints usage information\n" \ 55 " -h, --help prints usage information\n" \
56 " -d, --debug enable communication debugging\n" \ 56 " -d, --debug enable communication debugging\n" \
57 "\n" 57 "\n" \
58 "Homepage: <" PACKAGE_URL ">\n" 58 "Homepage: <" PACKAGE_URL ">\n" \
59 "Bug Reports: <" PACKAGE_BUGREPORT ">\n"
59 ); 60 );
60} 61}
61 62
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c
index f7a5b74..54699a0 100644
--- a/tools/idevicesyslog.c
+++ b/tools/idevicesyslog.c
@@ -519,29 +519,34 @@ static void print_usage(int argc, char **argv, int is_error)
519 name = strrchr(argv[0], '/'); 519 name = strrchr(argv[0], '/');
520 fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); 520 fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
521 fprintf(is_error ? stderr : stdout, 521 fprintf(is_error ? stderr : stdout,
522 "Relay syslog of a connected device.\n\n" \ 522 "\n" \
523 "OPTIONS:\n" \ 523 "Relay syslog of a connected device.\n" \
524 " -u, --udid UDID target specific device by UDID\n" \ 524 "\n" \
525 " -n, --network connect to network device even if available via USB\n" \ 525 "OPTIONS:\n" \
526 " -x, --exit exit when device disconnects\n" \ 526 " -u, --udid UDID target specific device by UDID\n" \
527 " -h, --help prints usage information\n" \ 527 " -n, --network connect to network device even if available via USB\n" \
528 " -d, --debug enable communication debugging\n" \ 528 " -x, --exit exit when device disconnects\n" \
529 " --no-colors disable colored output\n" \ 529 " -h, --help prints usage information\n" \
530 "\n" \ 530 " -d, --debug enable communication debugging\n" \
531 "FILTER OPTIONS:\n" \ 531 " --no-colors disable colored output\n" \
532 " -m, --match STRING only print messages that contain STRING\n" \ 532 "\n" \
533 " -t, --trigger STRING start logging when matching STRING\n" \ 533 "FILTER OPTIONS:\n" \
534 " -T, --untrigger STRING stop logging when matching STRING\n" \ 534 " -m, --match STRING only print messages that contain STRING\n" \
535 " -p, --process PROCESS only print messages from matching process(es)\n" \ 535 " -t, --trigger STRING start logging when matching STRING\n" \
536 " -e, --exclude PROCESS print all messages except matching process(es)\n" \ 536 " -T, --untrigger STRING stop logging when matching STRING\n" \
537 " PROCESS is a process name or multiple process names separated by \"|\".\n" \ 537 " -p, --process PROCESS only print messages from matching process(es)\n" \
538 " -q, --quiet set a filter to exclude common noisy processes\n" \ 538 " -e, --exclude PROCESS print all messages except matching process(es)\n" \
539 " --quiet-list prints the list of processes for --quiet and exits\n" \ 539 " PROCESS is a process name or multiple process names\n" \
540 " -k, --kernel only print kernel messages\n" \ 540 " separated by \"|\".\n" \
541 " -K, --no-kernel suppress kernel messages\n" \ 541 " -q, --quiet set a filter to exclude common noisy processes\n" \
542 "For filter example usage consult idevicesyslog(1) man page.\n" \ 542 " --quiet-list prints the list of processes for --quiet and exits\n" \
543 "\n" \ 543 " -k, --kernel only print kernel messages\n" \
544 "Homepage: <" PACKAGE_URL ">\n" 544 " -K, --no-kernel suppress kernel messages\n" \
545 "\n" \
546 "For filter examples consult idevicesyslog(1) man page.\n" \
547 "\n" \
548 "Homepage: <" PACKAGE_URL ">\n"
549 "Bug Reports: <" PACKAGE_BUGREPORT ">\n"
545 ); 550 );
546} 551}
547 552