diff options
author | Martin Szulecki | 2020-06-04 02:46:09 +0200 |
---|---|---|
committer | Martin Szulecki | 2020-06-04 02:46:09 +0200 |
commit | bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e (patch) | |
tree | 2583c0ccae9fa2f1b3606118b49bc530749777f9 /tools/idevicediagnostics.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/idevicediagnostics.c')
-rw-r--r-- | tools/idevicediagnostics.c | 16 |
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) { char *name = NULL; name = strrchr(argv[0], '/'); - printf("Usage: %s COMMAND [OPTIONS]\n", (name ? name + 1: argv[0])); - printf("Use diagnostics interface of a device running iOS 4 or later.\n\n"); - printf(" Where COMMAND is one of:\n"); + printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0])); + printf("\n"); + printf("Use diagnostics interface of a device running iOS 4 or later.\n"); + printf("\n"); + printf("Where COMMAND is one of:\n"); printf(" diagnostics [TYPE]\t\tprint diagnostics information from device by TYPE (All, WiFi, GasGauge, NAND)\n"); printf(" mobilegestalt KEY [...]\tprint mobilegestalt keys passed as arguments separated by a space.\n"); printf(" ioreg [PLANE]\t\t\tprint IORegistry of device, optionally by PLANE (IODeviceTree, IOPower, IOService) (iOS 5+ only)\n"); printf(" ioregentry [KEY]\t\tprint IORegistry entry of device (AppleARMPMUCharger, ASPStorage, ...) (iOS 5+ only)\n"); printf(" shutdown\t\t\tshutdown device\n"); printf(" restart\t\t\trestart device\n"); - printf(" sleep\t\t\t\tput device into sleep mode (disconnects from host)\n\n"); - printf(" The following OPTIONS are accepted:\n"); + printf(" sleep\t\t\t\tput device into sleep mode (disconnects from host)\n"); + printf("\n"); + printf("The following OPTIONS are accepted:\n"); printf(" -d, --debug\t\tenable communication debugging\n"); printf(" -u, --udid UDID\ttarget specific device by UDID\n"); printf(" -h, --help\t\tprints usage information\n"); printf("\n"); - printf("Homepage: <" PACKAGE_URL ">\n"); + printf("Homepage: <" PACKAGE_URL ">\n"); + printf("Bug Reports: <" PACKAGE_BUGREPORT ">\n"); } |