1
0

add --help -h

This commit is contained in:
otya128
2016-12-03 21:17:52 +09:00
parent 67feffd5bf
commit b3f1c22644
2 changed files with 8 additions and 5 deletions

View File

@@ -4,9 +4,6 @@ d:
- dmd
- gdc
- ldc
addons:
apt:
packages:
- libsdl2-2.0-0
- libsdl2-image-2.0-0
dub test --compiler=${DC} -- -h

View File

@@ -12,6 +12,12 @@ int main(string[] argv)
bool nodirectmode;
string inputfile;
auto helpInformation = getopt(argv, "no-direct-mode", &nodirectmode, "file", &inputfile);
if (helpInformation.helpWanted)
{
defaultGetoptPrinter("Some information about the program.",
helpInformation.options);
return 0;
}
//try
{
auto pc = new PetitComputer();