captype: add options to Usage: and man page

pespin/rlcmac
Chuck Craft 1 year ago committed by Wireshark GitLab Utility
parent 30863e5298
commit 1e18f79373
  1. 6
      captype.c
  2. 16
      doc/captype.adoc

@ -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");
}
/*

@ -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),

Loading…
Cancel
Save