Revision: 55587
http://sourceforge.net/p/brlcad/code/55587
Author: carlmoore
Date: 2013-05-29 18:23:16 +0000 (Wed, 29 May 2013)
Log Message:
-----------
implement h and ?
Modified Paths:
--------------
brlcad/trunk/src/util/bwthresh.c
Modified: brlcad/trunk/src/util/bwthresh.c
===================================================================
--- brlcad/trunk/src/util/bwthresh.c 2013-05-29 18:09:45 UTC (rev 55586)
+++ brlcad/trunk/src/util/bwthresh.c 2013-05-29 18:23:16 UTC (rev 55587)
@@ -49,9 +49,11 @@
int i;
unsigned char *bin_color = (unsigned char *)0;/* resultant pixel values */
- if ((nm_threshs = argc - 1) < 1) {
+ if ( (BU_STR_EQUAL(argv[1],"-h") || BU_STR_EQUAL(argv[1],"-?")) && argc ==
2)
bu_exit(1, "%s", USAGE);
- }
+ if ((nm_threshs = argc - 1) < 1)
+ bu_exit(1, "%s", USAGE);
+
if (nm_threshs > 255) {
bu_exit(1, "bwthresh: Too many thresholds!\n");
}
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