Revision: 55844
          http://sourceforge.net/p/brlcad/code/55844
Author:   carlmoore
Date:     2013-06-25 20:40:37 +0000 (Tue, 25 Jun 2013)
Log Message:
-----------
change h to H, because of no alternative for high-res; now use h,? for help 
(run-with-no-arguments already works)

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

Modified: brlcad/trunk/src/fb/fbgamma.c
===================================================================
--- brlcad/trunk/src/fb/fbgamma.c       2013-06-25 20:00:47 UTC (rev 55843)
+++ brlcad/trunk/src/fb/fbgamma.c       2013-06-25 20:40:37 UTC (rev 55844)
@@ -35,7 +35,7 @@
 #include "fb.h"
 #include "pkg.h"
 
-char *options = "ihoF:";
+char *options = "iHoF:h?";
 
 void checkgamma(double g);
 
@@ -47,7 +47,7 @@
 int image = 0;
 
 static char usage[] = "\
-Usage: fbgamma [-h -o -i] [-F framebuffer] val [gval bval]\n";
+Usage: fbgamma [-H -o -i] [-F framebuffer] val [gval bval]\n";
 
 void mk_ramp(FBIO *fb, int r, int g, int b, int n)
 {
@@ -123,11 +123,11 @@
     bu_opterr = 0;
     while ((i=bu_getopt(argc, argv, options)) != -1) {
        switch (i) {
-           case 'h'    : fbsize = 1024; break;
+           case 'H'    : fbsize = 1024; break;
            case 'o'    : overlay++; break;
            case 'i'    : image = !image; break;
            case 'F'    : framebuffer = bu_optarg; break;
-           default             : break;
+           default     : bu_exit(1, "%s", usage);
        }
     }
 

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