]> diplodocus.org Git - nmh/commitdiff
Documented mhparam -debug option.
authorDavid Levine <levinedl@acm.org>
Thu, 14 Jun 2012 14:10:23 +0000 (09:10 -0500)
committerDavid Levine <levinedl@acm.org>
Thu, 14 Jun 2012 14:10:23 +0000 (09:10 -0500)
man/mhparam.man
test/mhparam/test-mhparam
uip/mhparam.c

index 82b343c..4326d13 100644 (file)
@@ -13,6 +13,7 @@ mhparam \- print nmh profile and context components
 .RB [ \-component " | " \-nocomponent ]
 .RB [ \-version ]
 .RB [ \-help ]
 .RB [ \-component " | " \-nocomponent ]
 .RB [ \-version ]
 .RB [ \-help ]
+.RB [ \-debug ]
 .ad
 .SH DESCRIPTION
 .B mhparam
 .ad
 .SH DESCRIPTION
 .B mhparam
@@ -43,12 +44,18 @@ If
 is specified, then all components in the nmh profile are
 displayed and other arguments are ignored.
 .PP
 is specified, then all components in the nmh profile are
 displayed and other arguments are ignored.
 .PP
-The locations of two nmh install directories are also available
-through
-.BR mhparam :
+.BR mhparam
+can provide other information, such as
+the locations of the nmh
 .I etcdir
 and
 .I etcdir
 and
-.IR libdir .
+.I libdir
+install directories and all
+.I proc
+settings.  The
+.B \-debug
+switch displays all such other information available from
+.BR mhparam .
 .PP
 Examples:
 .PP
 .PP
 Examples:
 .PP
index b94b9de..087be8d 100755 (executable)
@@ -161,7 +161,7 @@ mhparam path context nonexistent1 nonexistent2 nonexistent3 >/dev/null
 run_test "echo $?" 3
 set -e
 
 run_test "echo $?" 3
 set -e
 
-# mhparam -debug (undocumented)
+# mhparam -debug
 # Some of its output depends on configure options, so don't bother to
 # check for correctness here.
 mhparam -debug >/dev/null
 # Some of its output depends on configure options, so don't bother to
 # check for correctness here.
 mhparam -debug >/dev/null
index 53a2523..d260352 100644 (file)
@@ -29,7 +29,7 @@ static struct swit switches[] = {
 #define        HELPSW    4
     { "help", 0 },
 #define DEBUGSW   5
 #define        HELPSW    4
     { "help", 0 },
 #define DEBUGSW   5
-    { "debug", -5 },
+    { "debug", 5 },
     { NULL, 0 }
 };
 
     { NULL, 0 }
 };