diff options
author | Werner Koch <wk@gnupg.org> | 2020-03-02 16:53:20 +0100 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2020-03-02 16:53:20 +0100 |
commit | d3661d81e9aafae75680164ede7322cf3d7b6804 (patch) | |
tree | 0384134cc8b8b4741ae294d231753fe674b8c451 /NEWS | |
parent | 2d1969ab465bad62f73a7c24ddc8bb490ff9fd40 (diff) | |
download | libgpg-error-d3661d81e9aafae75680164ede7322cf3d7b6804.tar.gz |
core: Allow returning of attributes from gpgrt_argparser.
* src/gpg-error.h.in (ARGPARSE_FLAG_WITHATTR): New.
(ARGPARSE_ATTR_FORCE): New.
(ARGPARSE_ATTR_IGNORE): New.
(ARGPARSE_TYPE_MASK): Moved from argparse.c to here.
* src/argparse.c: Always use macros for constants.
(_gpgrt_argparse): Handle ARGPARSE_FLAG_WITHATTR.
(arg_parse): Ditto.
* tests/t-argparse.c (main): Add commented test case.
--
This is a ABI compatible hack to allow the ignore and force attributes
as well as to return which option has been ignored in a user file or
on the command line.
Signed-off-by: Werner Koch <wk@gnupg.org>
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -11,9 +11,13 @@ Noteworthy changes in version 1.38 (unreleased) [C28/A28/R_] ARGPARSE_FLAG_USER NEW. ARGPARSE_FLAG_VERBOSE NEW. ARGPARSE_FLAG_USERVERS NEW. + ARGPARSE_FLAG_WITHATTR NEW. ARGPARSE_NO_CONFFILE NEW. ARGPARSE_CONFFILE NEW. ARGPARSE_OPT_CONFFILE NEW. + ARGPARSE_ATTR_FORCE NEW. + ARGPARSE_ATTR_IGNORE NEW. + ARGPARSE_TYPE_MASK NEW. ARGPARSE_PERMISSION_ERROR NEW. ARGPARSE_INVALID_META NEW. ARGPARSE_UNKNOWN_META NEW. |