On Wed, Sep 4, 2013 at 11:49 PM, Christopher Sean Morrison
<brl...@mac.com> wrote:
...
> Imagine a simplified version of the argtable API with a "bu_" prefix,
> calling tclap.  Not exactly the way to proceed, but the notion is similar.  
> ...
> Cliff's preliminary thoughts are looking on track, though I think we'll need 
> a concrete example hashed out in C from the caller's perspective, perhaps 
> src/proc-db/wavy.c, to keep an eye on what the end-result will look like.  
> Test-driven development ftw. ;)
>
> It'd probably start looking something like:

Thanks for more input.

How about if I add wavy_t.cpp for another test, then work on
implementing the bu_opt_parse if all is looking well?

In order to integrate with my auto-man-parser I may have to do some
mods to TCLAP.

Other changes may have to be local just because, for instance, the
direction you want go in the '-?' vs. '-h' opts is not currently
compatible with TCLAP (but I've asked about that at the TCLAP site).
Note one of TCLAP's strengths is automatic help handling if the args
are defined well, see dsp_add_t for some of the standard formatting
(dsp_add_t is not a very good example because of its sparse arg
choice--wavy_t should be better).

Also, I think we need to zero in more on exactly the format we would
like for command line args and help to be handled (that will also help
ease extraction of data for documentation.)

As a good example, I think wavy.c should have a no-arg usage
statement.  Then use something like a redirect or output file name to
ensure at least one arg for operation.  In a pinch, use something like
a standard '--go' or '--default' if we can't think of anything else to
continue default behavior.

Best regards,

-Tom

P.S. Thank goodness:  I just discovered gmail's plain text mode option!

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to