Revision: 55667
          http://sourceforge.net/p/brlcad/code/55667
Author:   carlmoore
Date:     2013-06-04 21:54:21 +0000 (Tue, 04 Jun 2013)
Log Message:
-----------
remove a 'break'; add -h,-?; add 'Usage'

Modified Paths:
--------------
    brlcad/trunk/src/conv/dxf/dxf-g.c

Modified: brlcad/trunk/src/conv/dxf/dxf-g.c
===================================================================
--- brlcad/trunk/src/conv/dxf/dxf-g.c   2013-06-04 21:18:49 UTC (rev 55666)
+++ brlcad/trunk/src/conv/dxf/dxf-g.c   2013-06-04 21:54:21 UTC (rev 55667)
@@ -208,7 +208,7 @@
 #define MAX_LINE_SIZE  2050
 char line[MAX_LINE_SIZE];
 
-static char *usage="dxf-g [-c] [-d] [-v] [-t tolerance] [-s scale_factor] 
input_file.dxf output_file.g\n";
+static char *usage="Usage: dxf-g [-c] [-d] [-v] [-t tolerance] [-s 
scale_factor] input_file.dxf output_file.g\n";
 
 static FILE *dxf;
 static struct rt_wdb *out_fp;
@@ -3147,7 +3147,7 @@
 
     /* get command line arguments */
     scale_factor = 1.0;
-    while ((c = bu_getopt(argc, argv, "cdvt:s:")) != -1)
+    while ((c = bu_getopt(argc, argv, "cdvt:s:h?")) != -1)
     {
        switch (c)
        {
@@ -3173,7 +3173,6 @@
                break;
            default:
                bu_exit(1, "%s", usage);
-               break;
        }
     }
 

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


------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to