From 2af0f6c0e0f7f5ee65cd156a6e8af065618f902d Mon Sep 17 00:00:00 2001 From: David Levine Date: Thu, 14 Jun 2012 09:10:23 -0500 Subject: [PATCH] Documented mhparam -debug option. --- man/mhparam.man | 15 +++++++++++---- test/mhparam/test-mhparam | 2 +- uip/mhparam.c | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/man/mhparam.man b/man/mhparam.man index 82b343c..4326d13 100644 --- a/man/mhparam.man +++ b/man/mhparam.man @@ -13,6 +13,7 @@ mhparam \- print nmh profile and context components .RB [ \-component " | " \-nocomponent ] .RB [ \-version ] .RB [ \-help ] +.RB [ \-debug ] .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 -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 -.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 diff --git a/test/mhparam/test-mhparam b/test/mhparam/test-mhparam index b94b9de..087be8d 100755 --- a/test/mhparam/test-mhparam +++ b/test/mhparam/test-mhparam @@ -161,7 +161,7 @@ mhparam path context nonexistent1 nonexistent2 nonexistent3 >/dev/null 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 diff --git a/uip/mhparam.c b/uip/mhparam.c index 53a2523..d260352 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -29,7 +29,7 @@ static struct swit switches[] = { #define HELPSW 4 { "help", 0 }, #define DEBUGSW 5 - { "debug", -5 }, + { "debug", 5 }, { NULL, 0 } }; -- 1.7.10.4