mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19: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>
This commit is contained in:
parent
b17846e4fd
commit
ad1254b59d
@ -1819,8 +1819,9 @@ retrieve_options_from_program (gc_component_id_t component, int only_installed)
|
|||||||
pargs.flags = (ARGPARSE_FLAG_KEEP
|
pargs.flags = (ARGPARSE_FLAG_KEEP
|
||||||
| ARGPARSE_FLAG_SYS
|
| ARGPARSE_FLAG_SYS
|
||||||
| ARGPARSE_FLAG_USER
|
| ARGPARSE_FLAG_USER
|
||||||
| ARGPARSE_FLAG_WITHATTR
|
| ARGPARSE_FLAG_WITHATTR);
|
||||||
| ARGPARSE_FLAG_VERBOSE);
|
if (opt.verbose)
|
||||||
|
pargs.flags |= ARGPARSE_FLAG_VERBOSE;
|
||||||
|
|
||||||
while (gpgrt_argparser (&pargs, opt_table, config_name))
|
while (gpgrt_argparser (&pargs, opt_table, config_name))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user