[PATCH] doc: Fix --debug-level for all versions.

Werner Koch wk at gnupg.org
Thu Sep 25 09:48:43 CEST 2014


On Thu, 25 Sep 2014 09:04, wk at gnupg.org said:

> I'll take a look at it.

The path below will go into 1.4.19.


Shalom-Salam,

   Werner

==
>From 9b1a78bb541c6c24dc1df8483fcbfe63065a2825 Mon Sep 17 00:00:00 2001
From: Werner Koch <wk at gnupg.org>
Date: Thu, 25 Sep 2014 09:47:28 +0200
Subject: [PATCH] Allow use of --debug-level=LEVEL without '='.

* g10/gpg.c (opts): Fix "debug-level".
---
 NEWS      | 2 ++
 g10/gpg.c | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/NEWS b/NEWS
index 5e12a86..6fb00cd 100644
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,8 @@
 Noteworthy changes in version 1.4.19 (unreleased)
 -------------------------------------------------
 
+ * Fix argument parsing for option --debug-level.
+
 
 Noteworthy changes in version 1.4.18 (2014-06-30)
 -------------------------------------------------
diff --git a/g10/gpg.c b/g10/gpg.c
index dbf2f40..1b0a364 100644
--- a/g10/gpg.c
+++ b/g10/gpg.c
@@ -518,7 +518,7 @@ static ARGPARSE_OPTS opts[] = {
     { oOptions, "options", 2, "@"},
     { oDebug, "debug"     ,4|16, "@"},
     { oDebugAll, "debug-all" ,0, "@"},
-    { oDebugLevel, "debug-level" ,0, "@"},
+    { oDebugLevel, "debug-level" ,2, "@"},
     { oStatusFD, "status-fd" ,1, "@"},
     { oStatusFile, "status-file" ,2, "@"},
     { oAttributeFD, "attribute-fd" ,1, "@" },
-- 
1.8.4.3


-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-devel mailing list