source: trunk/third/nmh/sbr/print_help.c @ 12455

Revision 12455, 612 bytes checked in by danw, 26 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r12454, which included commits to RCS files with non-trunk default branches.
Line 
1
2/*
3 * print_help.c -- print a help message, and possibly the
4 *              -- profile/context entries for this command
5 *
6 * $Id: print_help.c,v 1.1.1.1 1999-02-07 18:14:09 danw Exp $
7 */
8
9#include <h/mh.h>
10
11
12void
13print_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}
Note: See TracBrowser for help on using the repository browser.