vibe-core/tests/args.d

28 lines
406 B
D
Raw Normal View History

2017-02-16 23:55:16 +00:00
/+ dub.json:
{
"name": "tests",
"description": "Command-line argument test",
"dependencies": {
"vibe-core": {"path": "../"}
}
}
+/
module test;
import vibe.core.args;
import vibe.core.log;
import std.stdio;
shared static this()
{
string argtest;
readOption("argtest", &argtest, "Test argument");
writeln("argtest=", argtest);
}
void main()
{
finalizeCommandLineOptions();
}