Revision: 55787
          http://sourceforge.net/p/brlcad/code/55787
Author:   carlmoore
Date:     2013-06-14 20:15:12 +0000 (Fri, 14 Jun 2013)
Log Message:
-----------
improve handling of usage message

Modified Paths:
--------------
    brlcad/trunk/src/fb/fbfade.c

Modified: brlcad/trunk/src/fb/fbfade.c
===================================================================
--- brlcad/trunk/src/fb/fbfade.c        2013-06-14 19:55:25 UTC (rev 55786)
+++ brlcad/trunk/src/fb/fbfade.c        2013-06-14 20:15:12 UTC (rev 55787)
@@ -65,9 +65,8 @@
 #include "pkg.h"
 
 
-#define USAGE1 "fbfade [ -s size ] [ -w width ] [ -n height ] [ -f in_fb_file 
]"
-#define USAGE2 \
-    "\t[ -h ] [ -S size ] [ -W width ] [ -N height ] [ [ -F ] out_fb_file ]"
+#define USAGE1 "Usage: fbfade [ -s size ] [ -w width ] [ -n height ] [ -f 
in_fb_file ]\n\
+[ -h ] [ -S size ] [ -W width ] [ -N height ] [ [ -F ] out_fb_file ]"
 #define OPTSTR "f:F:hn:N:s:S:w:W:"
 
 
@@ -191,13 +190,13 @@
            }
 
        if (errors)
-           Fatal(fbp, "Usage: %s\n%s", USAGE1, USAGE2);
+           Fatal(fbp, USAGE1);
     }
 
     if (bu_optind < argc) {
        /* out_fb_file */
        if (bu_optind < argc - 1 || out_fb_file != NULL) {
-           Message("Usage: %s\n%s", USAGE1, USAGE2);
+           Message(USAGE1);
            Fatal(fbp, "Can't handle multiple output frame buffers!");
        }
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to