www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - getopt and tuples

Hi all,

I'm trying to make use of std.getopt by wrapping it with a class that handles
usage printing and reading from a configuration file.  Previously, in C++,
would construct an array of "struct option" for getopt_long_only().

Is there a way to do something similar in D?  Looking through the std.getopt
code it seems that the variable argument list needed by getopt() is really
implemented as a template with a tuple argument, but I'm not sure if my class
can construct this tuple at runtime to call getopt.  Any ideas would be

thanks in advance,
Feb 02 2008