summaryrefslogtreecommitdiffstats
path: root/tools/idevice_id.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2020-06-04 02:46:09 +0200
committerGravatar Martin Szulecki2020-06-04 02:46:09 +0200
commitbc2a1554dfeeb8c7e20d1c3b80e26ec69759743e (patch)
tree2583c0ccae9fa2f1b3606118b49bc530749777f9 /tools/idevice_id.c
parente1cfe7f6d431b233a151a20b9efc8a8ccb34ab51 (diff)
downloadlibimobiledevice-bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e.tar.gz
libimobiledevice-bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e.tar.bz2
Unify usage output in all tools and add bugreport URL
Diffstat (limited to 'tools/idevice_id.c')
-rw-r--r--tools/idevice_id.c25
1 files changed, 15 insertions, 10 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)