From 4698e5b203bd983503b5fd784fcd09dd3bc3a15e Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 22 Jun 2015 21:01:10 +0200 Subject: gpg: Allow debug flag names for --debug. * g10/gpg.c (opts): Change arg for oDebug to a string. (debug_flags): New; factored out from set_debug. (set_debug): Remove "--debug-level help". Use parse_debug_flag to print the used flags. (main): Use parse_debug_flag for oDebug. Signed-off-by: Werner Koch --- doc/gpg.texi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/gpg.texi b/doc/gpg.texi index 83dbda730..6c5cc5d19 100644 --- a/doc/gpg.texi +++ b/doc/gpg.texi @@ -2320,8 +2320,6 @@ a numeric value or by a keyword: All of the debug messages you can get. A value greater than 8 may be used instead of the keyword. The creation of hash tracing files is only enabled if the keyword is used. - @item help - List all available debug flags (see @option{debug}) and stop. @end table How these messages are mapped to the actual debugging flags is not @@ -2330,8 +2328,10 @@ however carefully selected to best aid in debugging. @item --debug @var{flags} @opindex debug -Set debugging flags. All flags are or-ed and @var{flags} may -be given in C syntax (e.g. 0x0042). +Set debugging flags. All flags are or-ed and @var{flags} may be given +in C syntax (e.g. 0x0042) or as a comma separated list of flag names. +To get a list of all supported flags the single word "help" can be +used. @item --debug-all @opindex debug-all -- cgit v1.2.3