summaryrefslogtreecommitdiff
path: root/usr/src/common/cmdparse/cmdparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/common/cmdparse/cmdparse.c')
-rw-r--r--usr/src/common/cmdparse/cmdparse.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/src/common/cmdparse/cmdparse.c b/usr/src/common/cmdparse/cmdparse.c
index b67d6b352b..a773311033 100644
--- a/usr/src/common/cmdparse/cmdparse.c
+++ b/usr/src/common/cmdparse/cmdparse.c
@@ -19,7 +19,7 @@
* CDDL HEADER END
*/
/*
- * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -250,6 +250,9 @@ subUsage(uint_t usageType, subCommandProps_t *subcommand)
}
}
(void) fprintf(stdout, "\n");
+ if (subcommand->helpText) {
+ (void) printf("%s\n", subcommand->helpText);
+ }
}
/*