From a8585c823035fa12dcb66b14682f9afb70038612 Mon Sep 17 00:00:00 2001 From: Jacob Carlborg Date: Sun, 15 Sep 2013 16:11:13 +0200 Subject: [PATCH] Print help text when the -h or --help flag is passed. --- server.d | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server.d b/server.d index 637f597..31078f3 100644 --- a/server.d +++ b/server.d @@ -59,6 +59,12 @@ int main(string[] args) return 1; } + if (help) + { + printHelp(args[0]); + return 0; + } + importPaths ~= loadConfiguredImportDirs(); auto socket = new TcpSocket(AddressFamily.INET);