aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-10-11 12:31:16 -0700
committerGuy Harris <guy@alum.mit.edu>2017-10-11 19:32:43 +0000
commit9551aca9a685e97a03d58eb63e4b791416ba4c63 (patch)
tree7a00c7d5dab79e1a8892d90f1ed673abcc89e56d /tshark.c
parentb2467fddb1d83a0667970968493a9dad1dfb0be1 (diff)
Add --print as an alias for -P, to match tcpdump.
tcpdump just got a --print option, which causes packet information to be printed even if the raw packets are being saved to a file with -w. We have -P for the same purpose; make --print another name for it. While we're at it: document --help and --version; just speak of -P/--print as causing printing even of the packet details, even though -V forces printing with -w, for consistency with how --print is documented for tcpdump; fix the description of -h/--help. Change-Id: Idf650a202a09a2d1682edbd9d76123f1b1412b55 Reviewed-on: https://code.wireshark.org/review/23888 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index 8cbc701063..c38043da35 100644
--- a/tshark.c
+++ b/tshark.c
@@ -676,6 +676,7 @@ main(int argc, char *argv[])
{"version", no_argument, NULL, 'v'},
LONGOPT_CAPTURE_COMMON
LONGOPT_DISSECT_COMMON
+ {"print", no_argument, NULL, 'P'},
{"export-objects", required_argument, NULL, LONGOPT_EXPORT_OBJECTS},
{"color", no_argument, NULL, LONGOPT_COLOR},
{"no-duplicate-keys", no_argument, NULL, LONGOPT_NO_DUPLICATE_KEYS},