Skip to content

Commit

Permalink
Complain about unrecognised arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 authored Jul 22, 2024
1 parent 38275cb commit 1b7a0d9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yksoft.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,12 @@ int main(int argc, char *argv[])
break;

case 'h':
default:
usage(EXIT_SUCCESS);
break;

default:
ERROR("Unrecognised argument '%c'", c)
usage(64);
}
argc -= optind;
argv += optind;
Expand Down

0 comments on commit 1b7a0d9

Please sign in to comment.