From ca962dc8de8af38a641e7fdd4243146817776924 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Fri, 10 Feb 2012 19:15:28 -0800 Subject: Combine usage string/fprintf calls into one Signed-off-by: Alan Coopersmith --- listres.c | 21 +++++++-------------- 1 file 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); } -- cgit v1.2.3