Signed-off-by: Johannes Schauer <[email protected]>
---
 HACKING    |    7 ++++---
 src/main.c |    2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/HACKING b/HACKING
index 05fb69c..128975f 100644
--- a/HACKING
+++ b/HACKING
@@ -77,12 +77,13 @@ to use "make install" when testing "connmand". The 
"bootstrap-configure"
 automatically includes this option.
 
   Run daemon in foreground with debugging
-    # sudo ./src/connmand -n -d 'plugins/*'
+    # sudo ./src/connmand -n -d
 
-The debugging option -d takes an argument. This argument can be a comma
+The debugging option -d can take an argument. This argument can be a comma
 separated list of file names like 'plugins/wifi.c,plugins/ethernet.c' to
 enable debugs in these files. Simple glob style pattern matching is
-supported in this list.
+supported in this list. E.g.: 'plugins/*' for all source files in the
+plugins directory or '*' for the same effect as -d without an argument.
 
 For production installations or distribution packaging it is important that
 the "--enable-maintainer-mode" option is NOT used.
diff --git a/src/main.c b/src/main.c
index cb78e12..9dd863f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -193,7 +193,7 @@ static gboolean parse_debug(const char *key, const char 
*value,
 static GOptionEntry options[] = {
        { "debug", 'd', G_OPTION_FLAG_OPTIONAL_ARG,
                                G_OPTION_ARG_CALLBACK, parse_debug,
-                               "Specify debug options to enable", "DEBUG" },
+                               "Source files to debug or no argument for all", 
"DEBUG" },
        { "device", 'i', 0, G_OPTION_ARG_STRING, &option_device,
                        "Specify networking device or interface", "DEV" },
        { "nodevice", 'I', 0, G_OPTION_ARG_STRING, &option_nodevice,
-- 
1.7.5.4

_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to