aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorChuck Craft <bubbasnmp@gmail.com>2021-03-13 15:28:41 -0600
committerA Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2022-02-26 17:59:37 +0000
commit393c2ec9f223e5bda4586c02a4b9495d3fea63ae (patch)
tree668f9c327d041f1f1fe0f7b12f76d441267a7545 /tshark.c
parent7baded473f219accb18d5d19657a7969ed8f88e3 (diff)
tshark: -G only accepted as first option
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tshark.c b/tshark.c
index fc3060a88d..3d573c371a 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1218,6 +1218,11 @@ main(int argc, char *argv[])
goto clean_exit;
}
break;
+ case 'G':
+ cmdarg_err("-G only valid as first option");
+ exit_status = INVALID_OPTION;
+ goto clean_exit;
+ break;
case 'j':
if (protocolfilter) {
cmdarg_err("-j or -J was already specified! Overwriting previous protocol filter");