+ /* Process the options */
+ while ((opt = getopt_long(argc, argv, "hv", long_options, NULL)) !=-1) {
+
+ switch (opt) {
+
+ case 'h':
+ printf("Captype (Wireshark) %s\n"
+ "Print the file types of capture files.\n"
+ "See https://www.wireshark.org for more information.\n",
+ get_ws_vcs_version_info());
+ print_usage(stdout);
+ exit(0);
+ break;
+
+ case 'v':
+ show_version("Captype (Wireshark)", comp_info_str, runtime_info_str);
+ g_string_free(comp_info_str, TRUE);
+ g_string_free(runtime_info_str, TRUE);
+ exit(0);
+ break;
+
+ case '?': /* Bad flag - print usage message */
+ print_usage(stderr);
+ exit(1);
+ break;
+ }
+ }