mirror of
git://git.gnupg.org/gnupg.git
synced 2025-03-24 22:09:57 +01:00
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 <wk@gnupg.org> (cherry picked from commit ad1254b59d41e127879fc9f495d392316135b4a5) GnuPG-bug-id: 5874
This commit is contained in:
parent
0c7dffe99d
commit
e8b1ab1d2d
@ -1914,8 +1914,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 (gnupg_argparser (&pargs, opt_table, config_name))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user