Skip to content

Commit

Permalink
Add validation to check if output already sel
Browse files Browse the repository at this point in the history
  • Loading branch information
cpmachado committed Oct 20, 2024
1 parent 4f16f7f commit b334703
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/egc.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ int32_t main(int32_t argc, char **argv) {
csv = 1;
break;
case 's':
if (csv) {
fprintf(stderr, "Already chose csv output\n");
usage();
exit(EXIT_FAILURE);
}
straight = 1;
break;
case 'n':
Expand Down

0 comments on commit b334703

Please sign in to comment.