diff options
| author | Werner Koch <[email protected]> | 2020-08-25 09:09:47 +0000 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2020-08-25 09:09:47 +0000 |
| commit | ad1254b59d41e127879fc9f495d392316135b4a5 (patch) | |
| tree | a8e4faa707b90733aca8e72c5e29f1df3343465f | |
| parent | agent: Allow using --gogconf-list even if HOME does not exist. (diff) | |
| download | gnupg-ad1254b59d41e127879fc9f495d392316135b4a5.tar.gz gnupg-ad1254b59d41e127879fc9f495d392316135b4a5.zip | |
gpgconf: Silence warnings from parsing the options files
* tools/gpgconf-comp.c (retrieve_options_from_program): Set verbose
flag for the arg parser only in --verbose mode.
--
Signed-off-by: Werner Koch <[email protected]>
| -rw-r--r-- | tools/gpgconf-comp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/gpgconf-comp.c b/tools/gpgconf-comp.c index c905bd13a..d6cc14c28 100644 --- a/tools/gpgconf-comp.c +++ b/tools/gpgconf-comp.c @@ -1819,8 +1819,9 @@ retrieve_options_from_program (gc_component_id_t component, int only_installed) pargs.flags = (ARGPARSE_FLAG_KEEP | ARGPARSE_FLAG_SYS | ARGPARSE_FLAG_USER - | ARGPARSE_FLAG_WITHATTR - | ARGPARSE_FLAG_VERBOSE); + | ARGPARSE_FLAG_WITHATTR); + if (opt.verbose) + pargs.flags |= ARGPARSE_FLAG_VERBOSE; while (gpgrt_argparser (&pargs, opt_table, config_name)) { |
