X-Git-Url: https://git.piment-noir.org/?p=TP_AL_C.git;a=blobdiff_plain;f=lexer%2Fmain.c;h=85adea092562d8c3c248b632060eff1933158b36;hp=a187f8ebb3fd88456aa01653418f00abd66e87c8;hb=5c1346dd169a32638aa70812aee0fc0dea3ccb70;hpb=25696723c6a45c3b7a0c33c8cbe9b2a788928694 diff --git a/lexer/main.c b/lexer/main.c index a187f8e..85adea0 100644 --- a/lexer/main.c +++ b/lexer/main.c @@ -91,6 +91,8 @@ int main(int argc, char **argv) { /* invalid option */ pr_error("%s: option '-%c' is invalid: ignored\n", argv[0], optopt); + /* print the help message for invalid options */ + hflag = 1; break; } }