diff src/defun.cc @ 5399:db34dff19947

[project @ 2005-06-17 21:16:20 by jwe]
author jwe
date Fri, 17 Jun 2005 21:16:22 +0000
parents b12c0f920da0
children ec3ffbf9982b
line wrap: on
line diff
--- a/src/defun.cc
+++ b/src/defun.cc
@@ -41,6 +41,9 @@
 #include "symtab.h"
 #include "variables.h"
 
+// XXX FIXME XXX -- this function could probably share some code with
+// the help functions.
+
 void
 print_usage (const std::string& nm, bool just_usage)
 {
@@ -56,6 +59,8 @@
 
 	  buf << "\n*** " << nm << ":\n\n";
 
+	  h = extract_help_from_dispatch (nm) + h;
+
 	  display_help_text (buf, h);
 
 	  buf << "\n";