aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2022-04-07 20:57:08 -0400
committerJohn Thacker <johnthacker@gmail.com>2022-04-07 20:57:08 -0400
commitf0f0f05060a16141a1a06be233b2884d6cc56e71 (patch)
tree9d0cbd033f5fe0ddc3bf2df8c087ce9f4f913903 /editcap.c
parent37ccc2b0e58b9f7ea3479f721f3909e340d4cfea (diff)
editcap: Document use of stdin and stdout
Editcap accepts '-' for stdin or stdout, document that. Also change an incorrect statement that claims that the '-v' flag writes to standard output; it writes to standard error.
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/editcap.c b/editcap.c
index 56f8acf061..f2909e01b6 100644
--- a/editcap.c
+++ b/editcap.c
@@ -736,7 +736,7 @@ print_usage(FILE *output)
fprintf(output, "\n");
fprintf(output, "Usage: editcap [options] ... <infile> <outfile> [ <packet#>[-<packet#>] ... ]\n");
fprintf(output, "\n");
- fprintf(output, "<infile> and <outfile> must both be present.\n");
+ fprintf(output, "<infile> and <outfile> must both be present; use '-' for stdin or stdout.\n");
fprintf(output, "A single packet or a range of packets can be selected.\n");
fprintf(output, "\n");
fprintf(output, "Packet selection:\n");