Support --git-target to specify the tag/branch to use for linking to source code.

This commit is contained in:
Sönke Ludwig 2013-02-21 00:14:58 +01:00
parent e5bde65c61
commit d24b11faa8
2 changed files with 8 additions and 1 deletions

View file

@ -1,10 +1,16 @@
module app;
import ddox.main;
import std.getopt;
import std.process;
import vibe.core.log;
int main(string[] args)
{
string git_target = "master";
getopt(args, std.getopt.config.passThrough,
"git-target", &git_target);
environment["GIT_TARGET"] = git_target;
setPlainLogging(true);
return ddoxMain(args);
}