diff options
author | Chuck Craft <bubbasnmp@gmail.com> | 2021-10-13 16:56:43 -0500 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-10-13 22:54:20 +0000 |
commit | 1e18f793739f4185423cf20b759c2d6e974484b9 (patch) | |
tree | c8840b3f250e21c6996791153390255147b9d38b | |
parent | 30863e52985e3efe01a8dd6a83d7e9f7892c17cf (diff) |
captype: add options to Usage: and man page
-rw-r--r-- | captype.c | 6 | ||||
-rw-r--r-- | doc/captype.adoc | 16 |
2 files changed, 21 insertions, 1 deletions
@@ -47,7 +47,11 @@ static void print_usage(FILE *output) { fprintf(output, "\n"); - fprintf(output, "Usage: captype <infile> ...\n"); + fprintf(output, "Usage: captype [options] <infile> ...\n"); + fprintf(output, "\n"); + fprintf(output, "Miscellaneous:\n"); + fprintf(output, " -h, --help display this help and exit\n"); + fprintf(output, " -v, --version display version info and exit\n"); } /* diff --git a/doc/captype.adoc b/doc/captype.adoc index d1a6d726f0..b4cc0f6c3c 100644 --- a/doc/captype.adoc +++ b/doc/captype.adoc @@ -13,6 +13,8 @@ captype - Prints the types of capture files [manarg] *captype* +[ *-h* ] +[ *-v* ] <__infile__> __...__ @@ -30,6 +32,20 @@ https://www.wireshark.org/docs/man-pages/wireshark.html is a detailed description of the way *Wireshark* handles this, which is the same way *Captype* handles this. +== OPTIONS + +-h|--help:: ++ +-- +Print the version number and options and exit. +-- + +-v|--version:: ++ +-- +Print the full version information and exit. +-- + == SEE ALSO xref:https://www.tcpdump.org/manpages/pcap.3pcap.html[pcap](3), xref:wireshark.html[wireshark](1), xref:mergecap.html[mergecap](1), xref:editcap.html[editcap](1), xref:tshark.html[tshark](1), |