optparse module

Lars Ivar Igesund larsivar at igesund.net
Fri Apr 14 12:23:35 PDT 2006


Daniel Keep wrote:

> 
> Frank Benoit wrote:
>> Or this one
>> 
>> http://svn.dsource.org/projects/ddl/trunk/utils/ArgParser.d
> 
> That one's pretty nice; much shorter than mine.
> 
> But then, mine produces a hash of boxes of pre-formatted values.  With
> that one, you have to write a new delegate for each option.

Hmm, I'm not totally sure I understand what you mean, could you provide an
example?

> 
> Plus, it doesn't have the way, way cool OptionParser.showHelp() method
> ^_^.

Does it print the arguments handled by optparse, like a default help sortof?

ArgParser is only meant to be a low level arg/opt parser. I also think it
should be easy to extend, both internally, and on top of it.




More information about the Digitalmars-d mailing list