+ fprintf(output, "Capinfos %s"
+#ifdef SVNVERSION
+ " (" SVNVERSION ")"
+#endif
+ "\n", VERSION);
+ fprintf(output, "Prints information about capture files.\n");
+ fprintf(output, "See http://www.wireshark.org for more information.\n");
+ fprintf(output, "\n");
+ fprintf(output, "Usage: capinfos [options] <infile> ...\n");
+ fprintf(output, "\n");
+ fprintf(output, "General:\n");
+ fprintf(output, " -t display the capture file type\n");
+ fprintf(output, " -E display the capture file encapsulation\n");
+ fprintf(output, "\n");
+ fprintf(output, "Size:\n");
+ fprintf(output, " -c display the number of packets\n");
+ fprintf(output, " -s display the size of the file (in bytes)\n");
+ fprintf(output, " -d display the total length of all packets (in bytes)\n");
+ fprintf(output, "\n");
+ fprintf(output, "Time:\n");
+ fprintf(output, " -u display the capture duration (in seconds) \n");
+ fprintf(output, " -a display the capture start time\n");
+ fprintf(output, " -e display the capture end time\n");
+ fprintf(output, "\n");
+ fprintf(output, "Statistic:\n");
+ fprintf(output, " -y display average data rate (in bytes/s)\n");
+ fprintf(output, " -i display average data rate (in bits/s)\n");
+ fprintf(output, " -z display average packet size (in bytes)\n");
+ fprintf(output, " -x display average packet rate (in packets/s)\n");
+ fprintf(output, "\n");
+ fprintf(output, "Miscellaneous:\n");
+ fprintf(output, " -h display this help and exit\n");
+ fprintf(output, "\n");
+ fprintf(output, "If no options are given, default is to display all infos\n");
+}