Remove RCS keywords, since they no longer work after git migration.
[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  * This code is Copyright (c) 2002, by the authors of nmh.  See the
7  * COPYRIGHT file in the root directory of the nmh distribution for
8  * complete copyright information.
9  */
10
11 #include <h/mh.h>
12
13
14 void
15 print_help (char *str, struct swit *swp, int print_context)
16 {
17     char *s;
18
19     /* print Usage string */
20     printf ("Usage: %s\n", str);
21
22     /* print all the switches */
23     printf ("  switches are:\n");
24     print_sw (ALL, swp, "-", stdout);
25
26     /*
27      * check if we should print any profile entries
28      */
29     if (print_context && (s = context_find (invo_name)))
30         printf ("\nProfile: %s\n", s);
31 }