add --help -h
This commit is contained in:
@@ -4,9 +4,6 @@ d:
|
|||||||
- dmd
|
- dmd
|
||||||
- gdc
|
- gdc
|
||||||
- ldc
|
- ldc
|
||||||
addons:
|
dub test --compiler=${DC} -- -h
|
||||||
apt:
|
|
||||||
packages:
|
|
||||||
- libsdl2-2.0-0
|
|
||||||
- libsdl2-image-2.0-0
|
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,12 @@ int main(string[] argv)
|
|||||||
bool nodirectmode;
|
bool nodirectmode;
|
||||||
string inputfile;
|
string inputfile;
|
||||||
auto helpInformation = getopt(argv, "no-direct-mode", &nodirectmode, "file", &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
|
//try
|
||||||
{
|
{
|
||||||
auto pc = new PetitComputer();
|
auto pc = new PetitComputer();
|
||||||
|
|||||||
Reference in New Issue
Block a user