vibe-core/tests/args.d
2017-02-17 00:55:16 +01:00

28 lines
406 B
D

/+ 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();
}