From 6aad32583dcf9a159b68007546d699fb391c7f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Thu, 31 Jan 2019 12:38:16 +0100 Subject: tshark: Improve options help texts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Align the usage help text for '-' as filename for stdin and stdout with the text used for wireshark. Change-Id: I67011b8234616940b7878fd5768c9e2a9e79f9f0 Reviewed-on: https://code.wireshark.org/review/31838 Petri-Dish: Stig Bjørlykke Tested-by: Petri Dish Buildbot Reviewed-by: Peter Wu --- docbook/wsug_src/tshark-h.txt | 4 ++-- tshark.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docbook/wsug_src/tshark-h.txt b/docbook/wsug_src/tshark-h.txt index d5ee7d2231..9258772a46 100644 --- a/docbook/wsug_src/tshark-h.txt +++ b/docbook/wsug_src/tshark-h.txt @@ -28,7 +28,7 @@ Capture output: filesize:NUM - switch to next file after NUM KB files:NUM - ringbuffer: replace after NUM files Input file: - -r set the filename to read from (- to read from stdin) + -r set the filename to read from (or '-' for stdin) Processing: -2 perform a two-pass analysis @@ -54,7 +54,7 @@ Processing: disable dissection of heuristic protocol Output: -w write packets to a pcapng-format file named "outfile" - (or to the standard output for "-") + (or '-' for stdout) -C start with specified configuration profile -F set the output file type, default is pcapng an empty "-F" option will list the file types diff --git a/tshark.c b/tshark.c index b3d86f49a2..c1fbd13eb5 100644 --- a/tshark.c +++ b/tshark.c @@ -360,7 +360,7 @@ print_usage(FILE *output) #endif /*fprintf(output, "\n");*/ fprintf(output, "Input file:\n"); - fprintf(output, " -r set the filename to read from (- to read from stdin)\n"); + fprintf(output, " -r set the filename to read from (or '-' for stdin)\n"); fprintf(output, "\n"); fprintf(output, "Processing:\n"); @@ -393,7 +393,7 @@ print_usage(FILE *output) #else fprintf(output, " -w write packets to a pcap-format file named \"outfile\"\n"); #endif - fprintf(output, " (or to the standard output for \"-\")\n"); + fprintf(output, " (or '-' for stdout)\n"); fprintf(output, " -C start with specified configuration profile\n"); #ifdef PCAP_NG_DEFAULT fprintf(output, " -F set the output file type, default is pcapng\n"); -- cgit v1.2.3