diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-01-28 10:26:33 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-01-28 10:26:33 -0800 |
commit | fe643332c824fdd0e4f8243e5c1e67c6370d0e5a (patch) | |
tree | 3cb0fd3f5e55136c292a145fb128f98a52aa06b3 /xbiff.c | |
parent | ffbfe65382c8f267139b87630976700c0e80b435 (diff) |
Combine usage message into a single string
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'xbiff.c')
-rw-r--r-- | xbiff.c | 28 |
1 files changed, 12 insertions, 16 deletions
@@ -70,24 +70,20 @@ static XtActionsRec xbiff_actions[] = { static void Usage (void) { - static const char *help_message[] = { -"where options include:", -" -display host:dpy X server to contact", -" -geometry geom size of mailbox", -" -file file file to watch", -" -update seconds how often to check for mail", -" -volume percentage how loud to ring the bell", -" -bg color background color", -" -fg color foreground color", -" -rv reverse video", -" -shape shape the window", -NULL}; - const char **cpp; + const char *help_message = +"where options include:\n" +" -display host:dpy X server to contact\n" +" -geometry geom size of mailbox\n" +" -file file file to watch\n" +" -update seconds how often to check for mail\n" +" -volume percentage how loud to ring the bell\n" +" -bg color background color\n" +" -fg color foreground color\n" +" -rv reverse video\n" +" -shape shape the window\n"; fprintf (stderr, "usage: %s [-options ...]\n", ProgramName); - for (cpp = help_message; *cpp; cpp++) - fprintf (stderr, "%s\n", *cpp); - fprintf (stderr, "\n"); + fprintf (stderr, "%s\n", help_message); exit (1); } |