Skip to content

Commit

Permalink
Add validation. Check if other output already sel
Browse files Browse the repository at this point in the history
  • Loading branch information
cpmachado committed Oct 20, 2024
1 parent b334703 commit 235c806
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 @@ -47,6 +47,11 @@ int32_t main(int32_t argc, char **argv) {
version();
exit(EXIT_SUCCESS);
case 'c':
if (straight) {
fprintf(stderr, "Already chose straight output\n");
usage();
exit(EXIT_FAILURE);
}
csv = 1;
break;
case 's':
Expand Down

0 comments on commit 235c806

Please sign in to comment.