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)
name = strrchr(argv[0], '/');
fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS] [UDID]\n", (name ? name + 1: argv[0]));
fprintf(is_error ? stderr : stdout,
- "Prints device name or a list of attached devices.\n\n" \
- " If UDID is given, the name of the connected device with that UDID" \
- " will be retrieved.\n\n" \
- " -l, --list list UDIDs of all devices attached via USB\n" \
- " -n, --network list UDIDs of all devices available via network\n" \
- " -d, --debug enable communication debugging\n" \
- " -h, --help prints usage information\n" \
- "\n" \
- "Homepage: <" PACKAGE_URL ">\n"
- );
+ "\n" \
+ "Prints device name or a list of attached devices.\n" \
+ "\n" \
+ " If UDID is given, the name of the connected device with that UDID" \
+ " will be retrieved.\n" \
+ "\n" \
+ "OPTIONS:\n" \
+ " -l, --list list UDIDs of all devices attached via USB\n" \
+ " -n, --network list UDIDs of all devices available via network\n" \
+ " -d, --debug enable communication debugging\n" \
+ " -h, --help prints usage information\n" \
+ "\n" \
+ "Homepage: <" PACKAGE_URL ">\n" \
+ "Bug Reports: <" PACKAGE_BUGREPORT ">\n"
+ );
}
int main(int argc, char **argv)