aboutsummaryrefslogtreecommitdiffstats
path: root/mergecap.c
diff options
context:
space:
mode:
authorChuck Craft <bubbasnmp@gmail.com>2022-06-14 21:05:10 -0500
committerJohn Thacker <johnthacker@gmail.com>2022-06-16 02:13:50 +0000
commitd008708552716719b363d0b31010890709fc5048 (patch)
treeb331108a07c9c1208614c7de09cdc196d17c7e3c /mergecap.c
parent572e6b0c1013f5d48bfa0a3ffd0c4cbd691a6782 (diff)
editcap/mergecap: swap 'v'|'V' options to match other CLI utilities
Closes #18134
Diffstat (limited to 'mergecap.c')
-rw-r--r--mergecap.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/mergecap.c b/mergecap.c
index 8bc5be0466..5d56ce60a7 100644
--- a/mergecap.c
+++ b/mergecap.c
@@ -66,9 +66,9 @@ print_usage(FILE *output)
fprintf(output, " an empty \"-I\" option will list the merge modes.\n");
fprintf(output, "\n");
fprintf(output, "Miscellaneous:\n");
- fprintf(output, " -h display this help and exit.\n");
- fprintf(output, " -v verbose output.\n");
- fprintf(output, " -V print version information and exit.\n");
+ fprintf(output, " -h, --help display this help and exit.\n");
+ fprintf(output, " -V verbose output.\n");
+ fprintf(output, " -v, --version print version information and exit.\n");
}
/*
@@ -200,7 +200,7 @@ main(int argc, char *argv[])
int opt;
static const struct ws_option long_options[] = {
{"help", ws_no_argument, NULL, 'h'},
- {"version", ws_no_argument, NULL, 'V'},
+ {"version", ws_no_argument, NULL, 'v'},
{0, 0, 0, 0 }
};
gboolean do_append = FALSE;
@@ -293,11 +293,11 @@ main(int argc, char *argv[])
snaplen = get_nonzero_guint32(ws_optarg, "snapshot length");
break;
- case 'v':
+ case 'V':
verbose = TRUE;
break;
- case 'V':
+ case 'v':
show_version();
goto clean_exit;
break;