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/idevicesyslog.c | 51 ++++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 23 deletions(-) (limited to 'tools/idevicesyslog.c') diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index f7a5b74..54699a0 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c @@ -519,29 +519,34 @@ static void print_usage(int argc, char **argv, int is_error) name = strrchr(argv[0], '/'); fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); fprintf(is_error ? stderr : stdout, - "Relay syslog of a connected device.\n\n" \ - "OPTIONS:\n" \ - " -u, --udid UDID target specific device by UDID\n" \ - " -n, --network connect to network device even if available via USB\n" \ - " -x, --exit exit when device disconnects\n" \ - " -h, --help prints usage information\n" \ - " -d, --debug enable communication debugging\n" \ - " --no-colors disable colored output\n" \ - "\n" \ - "FILTER OPTIONS:\n" \ - " -m, --match STRING only print messages that contain STRING\n" \ - " -t, --trigger STRING start logging when matching STRING\n" \ - " -T, --untrigger STRING stop logging when matching STRING\n" \ - " -p, --process PROCESS only print messages from matching process(es)\n" \ - " -e, --exclude PROCESS print all messages except matching process(es)\n" \ - " PROCESS is a process name or multiple process names separated by \"|\".\n" \ - " -q, --quiet set a filter to exclude common noisy processes\n" \ - " --quiet-list prints the list of processes for --quiet and exits\n" \ - " -k, --kernel only print kernel messages\n" \ - " -K, --no-kernel suppress kernel messages\n" \ - "For filter example usage consult idevicesyslog(1) man page.\n" \ - "\n" \ - "Homepage: <" PACKAGE_URL ">\n" + "\n" \ + "Relay syslog of a connected device.\n" \ + "\n" \ + "OPTIONS:\n" \ + " -u, --udid UDID target specific device by UDID\n" \ + " -n, --network connect to network device even if available via USB\n" \ + " -x, --exit exit when device disconnects\n" \ + " -h, --help prints usage information\n" \ + " -d, --debug enable communication debugging\n" \ + " --no-colors disable colored output\n" \ + "\n" \ + "FILTER OPTIONS:\n" \ + " -m, --match STRING only print messages that contain STRING\n" \ + " -t, --trigger STRING start logging when matching STRING\n" \ + " -T, --untrigger STRING stop logging when matching STRING\n" \ + " -p, --process PROCESS only print messages from matching process(es)\n" \ + " -e, --exclude PROCESS print all messages except matching process(es)\n" \ + " PROCESS is a process name or multiple process names\n" \ + " separated by \"|\".\n" \ + " -q, --quiet set a filter to exclude common noisy processes\n" \ + " --quiet-list prints the list of processes for --quiet and exits\n" \ + " -k, --kernel only print kernel messages\n" \ + " -K, --no-kernel suppress kernel messages\n" \ + "\n" \ + "For filter examples consult idevicesyslog(1) man page.\n" \ + "\n" \ + "Homepage: <" PACKAGE_URL ">\n" + "Bug Reports: <" PACKAGE_BUGREPORT ">\n" ); } -- cgit v1.1-32-gdbae