diff options
author | Werner Koch <[email protected]> | 1997-12-16 19:15:09 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1997-12-16 19:15:09 +0000 |
commit | 15426c6d969f49ccb7be738ace2647dca686a5b5 (patch) | |
tree | 69afa01597e394eb7109f6d2d5a82f291e798c98 /util/argparse.c | |
parent | added option file handling (diff) | |
download | gnupg-15426c6d969f49ccb7be738ace2647dca686a5b5.tar.gz gnupg-15426c6d969f49ccb7be738ace2647dca686a5b5.zip |
added some stuff for signing keys
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 */ |