diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-10-06 12:15:25 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2018-10-06 12:15:25 -0700 |
commit | 366b03aee6dc4cb19aa82f6cd2dd067646873777 (patch) | |
tree | 06e520d2b393b9351d5f0552302e67712ebb8629 | |
parent | e08d28020c38a9fc5167c785334d426fe0f157d1 (diff) |
Collapse usage message into a single string
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xev.c | 42 |
1 files changed, 19 insertions, 23 deletions
@@ -877,35 +877,31 @@ set_sizehints (XSizeHints *hintp, int min_width, int min_height, static void usage (const char *errmsg) { - static const char *msg[] = { -" -display displayname X server to contact", -" -geometry geom size and location of window", -" -bw pixels border width in pixels", -" -bs {NotUseful,WhenMapped,Always} backingstore attribute", -" -id windowid use existing window", -" -root use root window", -" -s set save-unders attribute", -" -name string window name", -" -rv reverse video", -" -event event_mask select 'event_mask' events", -" Supported event masks: keyboard mouse expose visibility structure", -" substructure focus property colormap", -" owner_grab_button randr button", -" This option can be specified multiple times to select multiple", -" event masks.", -" -version print version and exit", -"", -NULL}; - const char **cpp; + const char *msg = +" -display displayname X server to contact\n" +" -geometry geom size and location of window\n" +" -bw pixels border width in pixels\n" +" -bs {NotUseful,WhenMapped,Always} backingstore attribute\n" +" -id windowid use existing window\n" +" -root use root window\n" +" -s set save-unders attribute\n" +" -name string window name\n" +" -rv reverse video\n" +" -event event_mask select 'event_mask' events\n" +" Supported event masks: keyboard mouse expose visibility structure\n" +" substructure focus property colormap\n" +" owner_grab_button randr button\n" +" This option can be specified multiple times to select multiple\n" +" event masks.\n" +" -version print version and exit\n" +"\n"; if (errmsg != NULL) fprintf (stderr, "%s: %s\n", ProgramName, errmsg); fprintf (stderr, "usage: %s [-options ...]\n", ProgramName); fprintf (stderr, "where options include:\n"); - - for (cpp = msg; *cpp; cpp++) - fprintf (stderr, "%s\n", *cpp); + fputs (msg, stderr); exit (1); } |