root/misc/combotest.d

Revision 128, 376 bytes (checked in by KirkMcDonald, 1 year ago)

Added module declarations to test modules.

Line 
1 module combotest;
2
3 import std.stdio : writefln;
4 import comboparse;
5
6 void main(char[][] args) {
7     auto config = new ComboParser("test.ini");
8     config.addOption("-f", "--foo").help("Foo!");
9     config.addOption("-b", "--baz").help("Baz!");
10     auto results = config.parse(args);
11
12     writefln("foo: ", results["foo"]);
13     writefln("baz: ", results["baz"]);
14 }
Note: See TracBrowser for help on using the browser.