Revision: 54529
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54529&view=rev
Author:   carlmoore
Date:     2013-03-04 22:30:23 +0000 (Mon, 04 Mar 2013)
Log Message:
-----------
avoid error messages and *bomb.log file, and instead print Usage if no 
arguments are found

Modified Paths:
--------------
    brlcad/trunk/src/anim/chan_permute.c

Modified: brlcad/trunk/src/anim/chan_permute.c
===================================================================
--- brlcad/trunk/src/anim/chan_permute.c        2013-03-04 17:28:50 UTC (rev 
54528)
+++ brlcad/trunk/src/anim/chan_permute.c        2013-03-04 22:30:23 UTC (rev 
54529)
@@ -70,6 +70,12 @@
     struct unit *x, *y;
     Word *arrayd;
 
+    if (argc == 1) {
+        fprintf(stderr,
+        "Usage: channel -i infile1 id id id ... [-i infile2 ...] -o outfile1 
id id ... [-o outfile2 ...]\n");
+       bu_exit(-1, NULL);
+    }
+
     i=j=icount = ocount = maxlength = 0;
     for (i=1;i<argc;i++) {
        if (!bu_strncmp(argv[i], ihead, 2)) {

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


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to