9 date 94.04.21.19.56.24; author jromine; state Exp;
14 date 92.12.15.00.20.22; author jromine; state Exp;
19 date 92.01.25.01.19.05; author jromine; state Exp;
24 date 92.01.25.01.14.58; author jromine; state Exp;
35 @print default options in help
38 @/* help.c - print the usage line */
40 static char ident[] = "@@(#)$Id: help.c,v 1.3 1992/12/15 00:20:22 jromine Exp jromine $";
47 extern char *options[];
52 register struct swit *swp;
61 printf ("syntax: %s\n", str);
62 printf (" switches are:\n");
63 printsw (ALL, swp, "-");
64 if ((cp = m_find (invo_name)) != NULL)
65 printf ("profile: %s\n", cp);
67 if (ssequal ("@@(#)", cp = version))
69 printf ("\nversion: %s\n", cp);
71 nameoutput = linepos = 0;
72 outputlinelen = OUTPUTLINELEN;
73 for (ap = options; *ap; ap++) {
75 fprintf (stdout, "%s: ", cp = "options");
76 linepos += (nameoutput = strlen (cp) + 2);
78 len = strlen (cp = *ap);
79 if (linepos != nameoutput)
80 if (len + linepos + 3 > outputlinelen)
81 fprintf (stdout, "\n%*s", linepos = nameoutput, "");
86 fprintf (stdout, "[%s]", cp);
91 (void) fputc ('\n', stdout);
103 static char ident[] = "@@(#)$Id: help.c,v 1.2 1992/01/25 01:19:05 jromine Exp jromine $";
111 check version for @@(#)
116 static char ident[] = "@@(#)$Id: formatsbr.c,v 1.14 1992/01/24 18:09:25 jromine Exp $";
129 printf ("\nversion: %s\n", version);