From bc5789665ae8c9f8fc3d02841cd6c9ade447a12a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 11 Feb 1998 23:22:09 +0000 Subject: bug fixes --- util/argparse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'util/argparse.c') diff --git a/util/argparse.c b/util/argparse.c index 795e87648..0c8ad8f0b 100644 --- a/util/argparse.c +++ b/util/argparse.c @@ -221,10 +221,10 @@ optfile_parse( FILE *fp, const char *filename, unsigned *lineno, arg->r_opt = -arg->r_opt; if( !opts[index].short_opt ) arg->r_opt = -2; /* unknown option */ - else if( (opts[index].flags & 8) ) /* no optional argument */ - arg->r_type = 0; /* okay */ - else /* no required argument */ + else if( (opts[index].flags & 8) ) /* no argument */ arg->r_opt = -3; /* error */ + else /* no or optiona argument */ + arg->r_type = 0; /* okay */ break; } else if( state == 3 ) { /* no argument found */ -- cgit v1.2.3