aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-06-22 19:01:10 +0000
committerWerner Koch <[email protected]>2015-06-22 19:01:10 +0000
commit4698e5b203bd983503b5fd784fcd09dd3bc3a15e (patch)
tree15f1eb855d87e91453737c5c2f345dcc6cf69ac5 /doc
parentcommon: Add function parse_debug_flag (diff)
downloadgnupg-4698e5b203bd983503b5fd784fcd09dd3bc3a15e.tar.gz
gnupg-4698e5b203bd983503b5fd784fcd09dd3bc3a15e.zip
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 <[email protected]>
Diffstat (limited to 'doc')
-rw-r--r--doc/gpg.texi8
1 files changed, 4 insertions, 4 deletions
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