#include "argconfig.ih"

ArgConfig &ArgConfig::initialize(char const *optstring, 
    LongOption const *const begin, LongOption const *const end, 
    int argc, char **argv, string const &fname,
    Comment cType, SearchCasing sType, Indices iType)
{
    if (s_argconfig)
        throw Exception() << "ArgConfig::initialize(): already initialized";

    s_argconfig = new ArgConfig(optstring, begin, end, 
                          argc, argv, fname, cType, sType, iType);

    return *s_argconfig;
}
