diff --git a/doc/tshark.pod b/doc/tshark.pod index 67c538544e..904b15b0a4 100644 --- a/doc/tshark.pod +++ b/doc/tshark.pod @@ -500,7 +500,9 @@ the type of record. =item -h -Print the version and options and exits. +=item --help + +Print the version and options and exit. =item -H Einput hosts fileE @@ -659,8 +661,10 @@ promiscuous mode. =item -P -Decode and display the packet summary, even if writing raw packet data using -the B<-w> option. +=item --print + +Decode and display the packet summary or details, even if writing raw +packet data using the B<-w> option. =item -q @@ -835,6 +839,8 @@ Enter an empty tap name "" to get a list of available names. =item -v +=item --version + Print the version and exit. =item -V 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},