diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-03-09 21:46:46 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2019-03-09 21:46:46 -0800 |
commit | 9fe45abd6589dcc501e415926d8aaa3568fb1933 (patch) | |
tree | bd7f8d7cd89f2aaaf7ceaf63482e963593bd0481 | |
parent | bab5bb9bbcb7e7424ec3276f6d74ca1a7dfa863f (diff) |
Combine options info into a single string in usage()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | xwd.c | 33 |
1 files changed, 17 insertions, 16 deletions
@@ -531,22 +531,23 @@ usage(const char *errmsg) fprintf(stderr, "Usage: %s [options] [-root| -id <wdid>| -name <wdname>] > mywddump\n", program_name); fprintf(stderr, " %s [options] [-root| -id <wdid>| -name <wdname>] -out mywddump\n", program_name); - fprintf(stderr, "Options:\n"); - fprintf(stderr, " -help Print this message\n"); - fprintf(stderr, " -version Print the program version and exit\n"); - fprintf(stderr, " -debug Enable debug mode\n"); - fprintf(stderr, " -d, -display <host:dpy> Specify server to connect\n"); - fprintf(stderr, " -nobdrs Exclude window borders\n"); - fprintf(stderr, " -out <file> Specify an output file\n"); - fprintf(stderr, " -xy Select XY dumping format for color displays\n"); - fprintf(stderr, " -add <value> Add a signed value to every pixel\n"); - fprintf(stderr, " -frame Include window manager frame\n"); - fprintf(stderr, " -root Select the root window\n"); - fprintf(stderr, " -id <wdid> Select a window by its resource id\n"); - fprintf(stderr, " -name <wdname> Select a window by its WM_NAME property\n"); - fprintf(stderr, " -icmap Use the first colormap of the screen\n"); - fprintf(stderr, " -screen Send the request against the root window\n"); - fprintf(stderr, " -silent Don't ring any bells\n"); + fputs("Options:\n" + " -help Print this message\n" + " -version Print the program version and exit\n" + " -debug Enable debug mode\n" + " -d, -display <host:dpy> Specify server to connect\n" + " -nobdrs Exclude window borders\n" + " -out <file> Specify an output file\n" + " -xy Select XY dumping format for color displays\n" + " -add <value> Add a signed value to every pixel\n" + " -frame Include window manager frame\n" + " -root Select the root window\n" + " -id <wdid> Select a window by its resource id\n" + " -name <wdname> Select a window by its WM_NAME property\n" + " -icmap Use the first colormap of the screen\n" + " -screen Send the request against the root window\n" + " -silent Don't ring any bells\n", + stderr); exit(1); } |