Revision: 55590
          http://sourceforge.net/p/brlcad/code/55590
Author:   carlmoore
Date:     2013-05-29 19:18:19 +0000 (Wed, 29 May 2013)
Log Message:
-----------
move Usage to stderr; remove Output(0.0)

Modified Paths:
--------------
    brlcad/trunk/src/mged/cad_parea.c

Modified: brlcad/trunk/src/mged/cad_parea.c
===================================================================
--- brlcad/trunk/src/mged/cad_parea.c   2013-05-29 19:05:57 UTC (rev 55589)
+++ brlcad/trunk/src/mged/cad_parea.c   2013-05-29 19:18:19 UTC (rev 55590)
@@ -46,7 +46,7 @@
 static void
 Usage(void)                            /* print usage message */
 {
-    printf("Usage: cad_parea [ -i input] [ -o output]\n");
+    fprintf(stderr,"Usage: cad_parea [-i input] [-o output]\n");
 }
 
 
@@ -67,13 +67,12 @@
 
     if (!GetArgs(argc, argv)) {
        /* process command arguments */
-       Output(0.0);
        return 1;
     }
 
     if (ttyin && ttyout && argc == 1) {
                Usage();        /* print usage message */
-               printf("       Program continues running:\n");
+               fprintf(stderr,"       Program continues running:\n");
     }
 
     saved = 0;
@@ -142,8 +141,7 @@
                }
                break;
 
-           case '?':
-           case 'h':
+           default:
                Usage();        /* print usage message */
                return 0;
        }
@@ -171,7 +169,6 @@
            return 1;   /* successfully converted */
 
        printf("cad_parea: bad input:\n%s\n", inbuf);
-       Output(0.0);
        bu_exit(2, NULL);               /* return false insufficient */
     }
 

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