On Thu, Jun 18, 2009 at 22:48, Christopher Sean Morrison <[email protected]> wrote:
...
> p.s. If you didn't notice, that proc-db is incomplete. But feel free
> to commit updates to it to fix anything you notice. Most things in
> src/proc-db are a playground for changes.
The first thing I want to do is change the program to behavior I
believe should be standard for most of its type. When the user
executes the program without args it should display help. For
example, executing metaball now yields:
$ metaball
Removing "metaball.g".
What??
My mod causes it to yield:
$ metaball
Usage:
/usr/brlcad/bin/metaball [-h] [-n number of frames] [-m method] [-o
outfile]
-h Show help
-n # Number of frames to (objects) to create
-m # Metaball render method (1 for iso, 2 for Blinn)
-t title Title of geometry
-o file File to write to
-g Gravotronic animation
-c # Number of control points (require Gravotronic mode)
I tried to fiddle with the "get args" loop:
while ((optc = bu_getopt(argc, argv, "Hhm:n:o:t:")) != -1)
but didn't have any luck, so I kludged it by adding this just in front
of the loop:
if (argc < 2) {
/* tell user what to do */
printf(usage, *argv);
return EXIT_FAILURE;
}
Regards,
-Tom
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
BRL-CAD Developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel