summaryrefslogtreecommitdiffstats
path: root/tools/idevicediagnostics.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevicediagnostics.c')
-rw-r--r--tools/idevicediagnostics.c16
1 files changed, 10 insertions, 6 deletions
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}