Revision: 56009
http://sourceforge.net/p/brlcad/code/56009
Author: carlmoore
Date: 2013-07-11 20:22:51 +0000 (Thu, 11 Jul 2013)
Log Message:
-----------
implement h,? help in g_diff
Modified Paths:
--------------
brlcad/trunk/src/gtools/g_diff.c
Modified: brlcad/trunk/src/gtools/g_diff.c
===================================================================
--- brlcad/trunk/src/gtools/g_diff.c 2013-07-11 19:37:08 UTC (rev 56008)
+++ brlcad/trunk/src/gtools/g_diff.c 2013-07-11 20:22:51 UTC (rev 56009)
@@ -80,6 +80,7 @@
Usage(char *str)
{
fprintf(stderr, "Usage: %s [-emfv] file1.g file2.g\n", str);
+ bu_exit(1, NULL);
}
@@ -901,7 +902,7 @@
invoked_as = argv[0];
- while ((c = bu_getopt(argc, argv, "emfv")) != -1) {
+ while ((c = bu_getopt(argc, argv, "emfvh?")) != -1) {
switch (c) {
case 'e':
evolutionary = 1;
@@ -915,16 +916,16 @@
case 'v': /* verify region attributes */
verify_region_attribs = 1;
break;
+ default:
+ Usage(invoked_as);
}
}
argc -= bu_optind;
argv+= bu_optind;
- if (argc != 2) {
+ if (argc != 2)
Usage(invoked_as);
- bu_exit(1, NULL);
- }
file1 = *argv++;
file2 = *argv;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits