diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-02-10 19:15:28 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-02-10 19:15:28 -0800 |
commit | ca962dc8de8af38a641e7fdd4243146817776924 (patch) | |
tree | 3bf4a92d60ad1fc2025614493dc38a7927aab0f5 | |
parent | dd31d1f8f205c140001052d15ab1ffbd5579dba4 (diff) |
Combine usage string/fprintf calls into one
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | listres.c | 21 |
1 files changed, 7 insertions, 14 deletions
@@ -85,21 +85,14 @@ static const char *ProgramName; static void usage (void) { - fprintf(stderr, "usage: %s [-options...]\n", ProgramName); - fprintf(stderr, "\nwhere options include:\n"); - fprintf(stderr, - " -all list all known widget and object classes\n"); - fprintf(stderr, - " -tree list all widgets and objects in a tree\n"); - fprintf(stderr, - " -nosuper do not print superclass resources\n"); - fprintf(stderr, - " -variable show variable name instead of class name\n"); - fprintf(stderr, - " -top name object to be top of tree\n"); - fprintf(stderr, + fprintf(stderr, "usage: %s [-options...]\n%s\n", ProgramName, + "\nwhere options include:\n" + " -all list all known widget and object classes\n" + " -tree list all widgets and objects in a tree\n" + " -nosuper do not print superclass resources\n" + " -variable show variable name instead of class name\n" + " -top name object to be top of tree\n" " -format string printf format for instance, class, type\n"); - fprintf(stderr, "\n"); exit (1); } |