]> granicus.if.org Git - psmisc/commitdiff
peekfd: usage help screen now contains long options list too
authorJan Rybar <jrybar@redhat.com>
Tue, 20 Dec 2016 13:27:59 +0000 (14:27 +0100)
committerJan Rybar <jrybar@redhat.com>
Tue, 20 Dec 2016 13:27:59 +0000 (14:27 +0100)
Resolves Red Hat Bugzilla #1401593

src/peekfd.c

index cba21309f07d1eb60059f3450f20dab2631a73d2..5f6258e9258d2fc93f99b23f04d87ba5bb6e50bb 100644 (file)
@@ -120,12 +120,12 @@ void print_version()
 void usage() {
        fprintf(stderr, _(
       "Usage: peekfd [-8] [-n] [-c] [-d] [-V] [-h] <pid> [<fd> ..]\n"
-         "    -8 output 8 bit clean streams.\n"
-         "    -n don't display read/write from fd headers.\n"
-         "    -c peek at any new child processes too.\n"
-         "    -d remove duplicate read/writes from the output.\n"
-         "    -V prints version info.\n"
-         "    -h prints this help.\n"
+         "    -8, --eight-bit-clean        output 8 bit clean streams.\n"
+         "    -n, --no-headers             don't display read/write from fd headers.\n"
+         "    -c, --follow                 peek at any new child processes too.\n"
+         "    -d, --duplicates-removed     remove duplicate read/writes from the output.\n"
+         "    -V, --version                prints version info.\n"
+         "    -h, --help                   prints this help.\n"
          "\n"
          "  Press CTRL-C to end output.\n"));
 }