Revision: 55540
http://sourceforge.net/p/brlcad/code/55540
Author: carlmoore
Date: 2013-05-22 20:57:38 +0000 (Wed, 22 May 2013)
Log Message:
-----------
implement -h and -? but not help-by-running-with-no-arguments
Modified Paths:
--------------
brlcad/trunk/src/util/buffer.c
Modified: brlcad/trunk/src/util/buffer.c
===================================================================
--- brlcad/trunk/src/util/buffer.c 2013-05-22 20:27:05 UTC (rev 55539)
+++ brlcad/trunk/src/util/buffer.c 2013-05-22 20:57:38 UTC (rev 55540)
@@ -53,8 +53,15 @@
int tfd = 0;
int ret = 0;
- if (argc > 1)
+ if ( (BU_STR_EQUAL(argv[1],"-h") || BU_STR_EQUAL(argv[1],"-?")) && argc ==
2){
+ bu_log("Usage: %s (takes no arguments)\n",argv[0]);
+ exit(1);
+ }
+
+ if (argc > 1){
bu_log("%s: unrecognized argument(s)\n", argv[0]);
+ bu_log(" Program continues running:\n", argv[0]);
+ }
if ((count = bu_mread(0, buf, sizeof(buf))) < (long)sizeof(buf)) {
if (count < 0) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits