diff --git a/ChangeLog b/ChangeLog index 11b18a9..1322de3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2014-09-29 Andrew J. Schorr + + * main.c (main): In optlist, it should say "h", not "h:", since there + is no argument for the help option. Thanks to Joep van Delft for + the bug report. + 2014-09-19 Arnold D. Robbins * awkgram.y: Further commentary as to the treacherousness diff --git a/main.c b/main.c index 41f10a1..3e9c18e 100644 --- a/main.c +++ b/main.c @@ -212,7 +212,7 @@ main(int argc, char **argv) /* * The + on the front tells GNU getopt not to rearrange argv. */ - const char *optlist = "+F:f:v:W;bcCd::D::e:E:gh:i:l:L:nNo::Op::MPrStVY"; + const char *optlist = "+F:f:v:W;bcCd::D::e:E:ghi:l:L:nNo::Op::MPrStVY"; bool stopped_early = false; int old_optind; int i;