Print help text when the -h or --help flag is passed.

This commit is contained in:
Jacob Carlborg 2013-09-15 16:11:13 +02:00
parent ebb608bba5
commit a8585c8230
1 changed files with 6 additions and 0 deletions

View File

@ -59,6 +59,12 @@ int main(string[] args)
return 1; return 1;
} }
if (help)
{
printHelp(args[0]);
return 0;
}
importPaths ~= loadConfiguredImportDirs(); importPaths ~= loadConfiguredImportDirs();
auto socket = new TcpSocket(AddressFamily.INET); auto socket = new TcpSocket(AddressFamily.INET);