Revision: 56238
          http://sourceforge.net/p/brlcad/code/56238
Author:   tbrowder2
Date:     2013-07-26 20:37:00 +0000 (Fri, 26 Jul 2013)
Log Message:
-----------
improve basic usage statement

Modified Paths:
--------------
    brlcad/trunk/src/util/dsp_add.c

Modified: brlcad/trunk/src/util/dsp_add.c
===================================================================
--- brlcad/trunk/src/util/dsp_add.c     2013-07-26 20:35:50 UTC (rev 56237)
+++ brlcad/trunk/src/util/dsp_add.c     2013-07-26 20:37:00 UTC (rev 56238)
@@ -177,6 +177,12 @@
     struct stat sb;
     size_t ret;
 
+    if (ac < 2) {
+      (void)fprintf(stderr, "Usage: %s dsp_1 dsp_2 > dsp_3\n",
+                  av[0]);
+      bu_exit (1, NULL);
+    }
+
     if (isatty(fileno(stdout))) usage("Must redirect standard output\n");
 
     next_arg = parse_args(ac, av);

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

Reply via email to