Hi!
I've written an command line option parser class. It's
flexible (you can define some parameters of how the
arguments will be formated and how to parse them)
while being easy to use (sensible unix-alike defaults,
properties all over the place, etc). It's also fully
OO, (except a private function used for unittesting the
function pointer validators to arguments, but that
doesn't count) so I would like to see it included into
Dool, but not yet: It's not finished; it uses char[]
instead of dool String (which I can't download here :)
and std.string std.conv phobos modules, and it's 100%
undocumented (looking at the OptionParser unittest you
can get a idea about how to use it) but the
funcionality is there.
I'm sending this because I'm going for a two week 100%
offline vacations to a sunny island and maybe in the
time some of you would be bored enought to fix some of
the things the module lacks (don't forget to send me a
copy of the module back if you do, better before my
spool get full of spam.) I'll fix the remaining point
at my return anyway.
optionparser.d
Logged In: YES
user_id=33332
Hi again!, just before takin the plane I've posted a new
version of the module. This one still lacks the
documentation but uses Strings instead of char[] and his
only dependecy on phobos is for std.string.format; but I
would like it to be considered for inclusion into Dool.