From bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Thu, 4 Jun 2020 02:46:09 +0200 Subject: Unify usage output in all tools and add bugreport URL --- tools/idevice_id.c | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'tools/idevice_id.c') 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) -- cgit v1.1-32-gdbae