gpg: Set --verbose and clear --quiet in debug mode.

* g10/gpg.c (set_debug): Tweak options.
--
This commit is contained in:
Werner Koch 2022-02-01 15:13:13 +01:00
parent 2331900d1c
commit d426ed66ac
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B
1 changed files with 6 additions and 0 deletions

View File

@ -1315,6 +1315,12 @@ set_debug (const char *level)
if (opt.debug)
parse_debug_flag (NULL, &opt.debug, debug_flags);
/* Make sure that we are --verbose in debug mode. */
if (opt.debug && !opt.verbose)
opt.verbose = 1;
if (opt.debug && opt.quiet)
opt.quiet = 0;
}