RejectedSoftware Forums

Sign up

Custom cmdline switches?

Is there a way to create a custom commandline option for a vibe.d app?

Re: Custom cmdline switches?

Am 04.09.2012 01:17, schrieb Nick Sabalausky:

Is there a way to create a custom commandline option for a vibe.d app?

Instead of the short version

import vibe.d;
(shared) static this()
{

// ...

}

do

import vibe.vibe;
int main(string[] args)
{

processCommandLineArgs(args);
// any unrecognized arguments now remain in args[]
    // ...
return runEventLoop();

}

for initialization.