Revision: 55605
          http://sourceforge.net/p/brlcad/code/55605
Author:   carlmoore
Date:     2013-05-30 16:56:26 +0000 (Thu, 30 May 2013)
Log Message:
-----------
use h,? for help; old h became H because I had no high-res alternative available

Modified Paths:
--------------
    brlcad/trunk/doc/docbook/system/man1/en/cmap-fb.xml
    brlcad/trunk/src/fb/cmap-fb.c

Modified: brlcad/trunk/doc/docbook/system/man1/en/cmap-fb.xml
===================================================================
--- brlcad/trunk/doc/docbook/system/man1/en/cmap-fb.xml 2013-05-30 13:42:42 UTC 
(rev 55604)
+++ brlcad/trunk/doc/docbook/system/man1/en/cmap-fb.xml 2013-05-30 16:56:26 UTC 
(rev 55605)
@@ -16,7 +16,7 @@
 <refsynopsisdiv xml:id="synopsis">
 <cmdsynopsis sepchar=" ">
   <command>cmap-fb</command>
-    <arg choice="opt" rep="norepeat">-h </arg>
+    <arg choice="opt" rep="norepeat">-H </arg>
     <arg choice="opt" rep="norepeat">-o </arg>
     <arg choice="opt" rep="norepeat"><replaceable>colormap</replaceable></arg>
 </cmdsynopsis>
@@ -40,7 +40,7 @@
 
 <para>By default, the display is assumed to be 512x512 pixels;
 by specifying the
-<option>-h</option>
+<option>-H</option>
 flag, the size is changed to 1024x1024.
 This size distinction is important for devices like the Adage
 framebuffers which have different operating modes based on the

Modified: brlcad/trunk/src/fb/cmap-fb.c
===================================================================
--- brlcad/trunk/src/fb/cmap-fb.c       2013-05-30 13:42:42 UTC (rev 55604)
+++ brlcad/trunk/src/fb/cmap-fb.c       2013-05-30 16:56:26 UTC (rev 55605)
@@ -89,7 +89,7 @@
 main(int argc, char **argv)
 {
     ColorMap cm;
-    char usage[] = "Usage: cmap-fb [-h -o] [colormap]\n";
+    char usage[] = "Usage: cmap-fb [-H -o] [colormap]\n";
 
     FBIO *fbp;
     FILE *fp;
@@ -99,12 +99,12 @@
     char line[512], buf[512], *str;
 
     while (argc > 1) {
-       if (BU_STR_EQUAL(argv[1], "-h")) {
+       if (BU_STR_EQUAL(argv[1], "-H")) {
            fbsize = 1024;
        } else if (BU_STR_EQUAL(argv[1], "-o")) {
            overlay++;
        } else if (argv[1][0] == '-') {
-           if (!BU_STR_EQUAL(argv[1], "-?"))
+           if ( (!BU_STR_EQUAL(argv[1], "-?")) && (!BU_STR_EQUAL(argv[1], 
"-h")) )
                fprintf(stderr, "cmap-fb: unknown flag %s\n", argv[1]);
            bu_exit(1, "%s", usage);
        } else

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


------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to