Skip to content

Commit

Permalink
combination of -L and -l is not allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Sep 2, 2023
1 parent f20bd28 commit de8e8b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hcxdumptool.c
Original file line number Diff line number Diff line change
Expand Up @@ -4928,10 +4928,20 @@ while((auswahl = getopt_long(argc, argv, short_options, long_options, &index)) !
break;

case HCX_SHOW_INTERFACE_LIST:
if(interfacelistshortflag == true)
{
fprintf(stderr, "combination of options -L and -l is not allowed\n");
exit(EXIT_FAILURE);
}
interfacelistflag = true;
break;

case HCX_SHOW_INTERFACE_LIST_SHORT:
if(interfacelistflag == true)
{
fprintf(stderr, "combination of options -L and -l is not allowed\n");
exit(EXIT_FAILURE);
}
interfacelistshortflag = true;
break;

Expand Down

0 comments on commit de8e8b2

Please sign in to comment.