When I fixed the long-standing makedir() bugs in January, I had the code call
[mmh] / sbr / print_help.c
1
2 /*
3  * print_help.c -- print a help message, and possibly the
4  *              -- profile/context entries for this command
5  *
6  * $Id$
7  */
8
9 #include <h/mh.h>
10
11
12 void
13 print_help (char *str, struct swit *swp, int print_context)
14 {
15     char *s;
16
17     /* print Usage string */
18     printf ("Usage: %s\n", str);
19
20     /* print all the switches */
21     printf ("  switches are:\n");
22     print_sw (ALL, swp, "-");
23
24     /*
25      * check if we should print any profile entries
26      */
27     if (print_context && (s = context_find (invo_name)))
28         printf ("\nProfile: %s\n", s);
29 }