Am 13.08.2014 02:59, schrieb Nick Sabalausky:

Does dub (either cmdline or package file) have an equivalent to dmd's
-main flag?

What currently at least comes close is the dub test command, which
automatically generates a main function that runs all unit tests. It
might also be possible to use "dflags": ["-main"], but I suspect that
that doesn't play well with the separate compile/link and single file
compilation modes.