diff options
Diffstat (limited to 'util/argparse.c')
-rw-r--r-- | util/argparse.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/util/argparse.c b/util/argparse.c index 10cfd5c1d..80b7fcd3d 100644 --- a/util/argparse.c +++ b/util/argparse.c @@ -194,6 +194,7 @@ optfile_parse( FILE *fp, const char *filename, unsigned *lineno, char keyword[100]; char *buffer = NULL; size_t buflen = 0; + int inverse=0; if( !fp ) /* same as arg_parse() in this case */ return arg_parse( arg, opts ); @@ -216,6 +217,8 @@ optfile_parse( FILE *fp, const char *filename, unsigned *lineno, break; index = i; arg->r_opt = opts[index].short_opt; + if( inverse ) + 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 */ |