diff options
| author | 2020-06-04 02:46:09 +0200 | |
|---|---|---|
| committer | 2020-06-04 02:46:09 +0200 | |
| commit | bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e (patch) | |
| tree | 2583c0ccae9fa2f1b3606118b49bc530749777f9 /tools/idevicesyslog.c | |
| parent | e1cfe7f6d431b233a151a20b9efc8a8ccb34ab51 (diff) | |
| download | libimobiledevice-bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e.tar.gz libimobiledevice-bc2a1554dfeeb8c7e20d1c3b80e26ec69759743e.tar.bz2 | |
Unify usage output in all tools and add bugreport URL
Diffstat (limited to 'tools/idevicesyslog.c')
| -rw-r--r-- | tools/idevicesyslog.c | 51 |
1 files changed, 28 insertions, 23 deletions
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) | |||
| 519 | name = strrchr(argv[0], '/'); | 519 | name = strrchr(argv[0], '/'); |
| 520 | fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); | 520 | fprintf(is_error ? stderr : stdout, "Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); |
| 521 | fprintf(is_error ? stderr : stdout, | 521 | fprintf(is_error ? stderr : stdout, |
| 522 | "Relay syslog of a connected device.\n\n" \ | 522 | "\n" \ |
| 523 | "OPTIONS:\n" \ | 523 | "Relay syslog of a connected device.\n" \ |
| 524 | " -u, --udid UDID target specific device by UDID\n" \ | 524 | "\n" \ |
| 525 | " -n, --network connect to network device even if available via USB\n" \ | 525 | "OPTIONS:\n" \ |
| 526 | " -x, --exit exit when device disconnects\n" \ | 526 | " -u, --udid UDID target specific device by UDID\n" \ |
| 527 | " -h, --help prints usage information\n" \ | 527 | " -n, --network connect to network device even if available via USB\n" \ |
| 528 | " -d, --debug enable communication debugging\n" \ | 528 | " -x, --exit exit when device disconnects\n" \ |
| 529 | " --no-colors disable colored output\n" \ | 529 | " -h, --help prints usage information\n" \ |
| 530 | "\n" \ | 530 | " -d, --debug enable communication debugging\n" \ |
| 531 | "FILTER OPTIONS:\n" \ | 531 | " --no-colors disable colored output\n" \ |
| 532 | " -m, --match STRING only print messages that contain STRING\n" \ | 532 | "\n" \ |
| 533 | " -t, --trigger STRING start logging when matching STRING\n" \ | 533 | "FILTER OPTIONS:\n" \ |
| 534 | " -T, --untrigger STRING stop logging when matching STRING\n" \ | 534 | " -m, --match STRING only print messages that contain STRING\n" \ |
| 535 | " -p, --process PROCESS only print messages from matching process(es)\n" \ | 535 | " -t, --trigger STRING start logging when matching STRING\n" \ |
| 536 | " -e, --exclude PROCESS print all messages except matching process(es)\n" \ | 536 | " -T, --untrigger STRING stop logging when matching STRING\n" \ |
| 537 | " PROCESS is a process name or multiple process names separated by \"|\".\n" \ | 537 | " -p, --process PROCESS only print messages from matching process(es)\n" \ |
| 538 | " -q, --quiet set a filter to exclude common noisy processes\n" \ | 538 | " -e, --exclude PROCESS print all messages except matching process(es)\n" \ |
| 539 | " --quiet-list prints the list of processes for --quiet and exits\n" \ | 539 | " PROCESS is a process name or multiple process names\n" \ |
| 540 | " -k, --kernel only print kernel messages\n" \ | 540 | " separated by \"|\".\n" \ |
| 541 | " -K, --no-kernel suppress kernel messages\n" \ | 541 | " -q, --quiet set a filter to exclude common noisy processes\n" \ |
| 542 | "For filter example usage consult idevicesyslog(1) man page.\n" \ | 542 | " --quiet-list prints the list of processes for --quiet and exits\n" \ |
| 543 | "\n" \ | 543 | " -k, --kernel only print kernel messages\n" \ |
| 544 | "Homepage: <" PACKAGE_URL ">\n" | 544 | " -K, --no-kernel suppress kernel messages\n" \ |
| 545 | "\n" \ | ||
| 546 | "For filter examples consult idevicesyslog(1) man page.\n" \ | ||
| 547 | "\n" \ | ||
| 548 | "Homepage: <" PACKAGE_URL ">\n" | ||
| 549 | "Bug Reports: <" PACKAGE_BUGREPORT ">\n" | ||
| 545 | ); | 550 | ); |
| 546 | } | 551 | } |
| 547 | 552 | ||
