summaryrefslogtreecommitdiff
path: root/listres.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2012-02-10 19:15:28 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2012-02-10 19:15:28 -0800
commitca962dc8de8af38a641e7fdd4243146817776924 (patch)
tree3bf4a92d60ad1fc2025614493dc38a7927aab0f5 /listres.c
parentdd31d1f8f205c140001052d15ab1ffbd5579dba4 (diff)
Combine usage string/fprintf calls into one
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'listres.c')
-rw-r--r--listres.c21
1 files changed, 7 insertions, 14 deletions
diff --git a/listres.c b/listres.c
index bddce1c..c566201 100644
--- a/listres.c
+++ b/listres.c
@@ -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);
}