tshark: -G only accepted as first option

This commit is contained in:
Chuck Craft 2021-03-13 15:28:41 -06:00 committed by A Wireshark GitLab Utility
parent 7baded473f
commit 393c2ec9f2
1 changed files with 5 additions and 0 deletions

View File

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