Revision: 56973
          http://sourceforge.net/p/brlcad/code/56973
Author:   carlmoore
Date:     2013-08-19 21:51:18 +0000 (Mon, 19 Aug 2013)
Log Message:
-----------
remove 2 sets of braces, remove : from P in opt string, and implement h?

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

Modified: brlcad/trunk/src/conv/nmg/g-nmg.c
===================================================================
--- brlcad/trunk/src/conv/nmg/g-nmg.c   2013-08-19 21:22:44 UTC (rev 56972)
+++ brlcad/trunk/src/conv/nmg/g-nmg.c   2013-08-19 21:51:18 UTC (rev 56973)
@@ -449,7 +449,7 @@
     rt_init_resource(&rt_uniresource, 0, NULL);
 
     /* Get command line arguments. */
-    while ((c = bu_getopt(argc, argv, "t:a:n:o:r:bvx:P:X:")) != -1) {
+    while ((c = bu_getopt(argc, argv, "t:a:n:o:r:bvx:PX:h?")) != -1) {
        switch (c) {
            case 'b':           /* make BOT's instead of NMG's */
                do_bots = 1;
@@ -494,18 +494,16 @@
        }
     }
 
-    if (bu_optind+1 >= argc) {
+    if (bu_optind+1 >= argc)
        bu_exit(1, usage, argv[0]);
-    }
 
     /* Open BRL-CAD database */
     if ((dbip = db_open(argv[bu_optind], DB_OPEN_READONLY)) == DBI_NULL) {
        perror(argv[0]);
        bu_exit(1, "Cannot open geometry database file %s\n", argv[bu_optind]);
     }
-    if (db_dirbuild(dbip)) {
+    if (db_dirbuild(dbip))
        bu_exit(1, "db_dirbuild failed\n");
-    }
 
     if ((fp_out = wdb_fopen(out_file)) == NULL) {
        perror(out_file);

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


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to