Add tests from vibe-d:core.
This commit is contained in:
parent
99bc332a81
commit
5a8d5a2fea
7 changed files with 354 additions and 0 deletions
27
tests/args.d
Normal file
27
tests/args.d
Normal file
|
@ -0,0 +1,27 @@
|
|||
/+ 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();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue