diff options
Diffstat (limited to 'src/argparse.c')
-rw-r--r-- | src/argparse.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/argparse.c b/src/argparse.c index a144881..cedb2f5 100644 --- a/src/argparse.c +++ b/src/argparse.c @@ -1874,6 +1874,17 @@ _gpgrt_argparse (estream_t fp, gpgrt_argparse_t *arg, gpgrt_opt_t *opts_orig) xfree (buffer); else gpgrt_annotate_leaked_object (buffer); + /* If the caller wants us to return the attributes or + * ignored options, or these flags in. */ + if ((arg->flags & ARGPARSE_FLAG_WITHATTR)) + { + if (opts[idx].ignore) + arg->r_type |= ARGPARSE_ATTR_IGNORE; + if (opts[idx].forced) + arg->r_type |= ARGPARSE_ATTR_FORCE; + if (set_ignore) + arg->r_type |= ARGPARSE_OPT_IGNORE; + } } } goto leave; |