diff options
Diffstat (limited to 'tools/ideviceinfo.c')
| -rw-r--r-- | tools/ideviceinfo.c | 30 |
1 files changed, 17 insertions, 13 deletions
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 | ||
