On Sep 5, 2013, at 9:45 AM, Tom Browder wrote:

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

If that'll help sure.  I already note, however, that Tclap's exception-happy 
interface is already a little bit different in terms of brevity.

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

Can they be avoided?  Modified third-party extensions has been a real pain for 
release integration (repos like apt, portage, ports really don't like it).  
With options described more verbosely than "isd:ek:", I'd think it'll be easier 
to parse (and it might make sense to have the tools themselves give their 
string instead of scanning sources).

> 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).

How so?  I'm not saying I don't believe you, but I don't think I believe you. :)

> 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.

I agree that most non-GUI commands should give usage when run without 
arguments.  However, I don't have a grasp on how many tools currently do this.  
Could you write a (throw-away) script that invokes all commands in bin/ and see 
which ones 1) give usage, 2) produce a file or perform some action of some 
sort, or 3) wait for input?  I wrote something similar for mged regression 
testing years ago and it helped get a handle on how many are behaving a 
particular way, what level of effort is needed to change the outliers.

Cheers!
Sean


------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to