1
0

Add --redirect-console option

This commit is contained in:
otya128
2017-07-08 17:41:31 +09:00
parent 18719c0c17
commit 2076af47f6
4 changed files with 28 additions and 7 deletions

View File

@@ -12,7 +12,8 @@ int main(string[] argv)
bool nodirectmode;
string inputfile;
bool antialiasing;
auto helpInformation = getopt(argv, "no-direct-mode", &nodirectmode, "file", &inputfile, "anti-aliasing", "Enable antialiasing.", &antialiasing);
bool redirectConsole;
auto helpInformation = getopt(argv, "redirect-console", &redirectConsole, "no-direct-mode", &nodirectmode, "file", &inputfile, "anti-aliasing", "Enable antialiasing.", &antialiasing);
if (helpInformation.helpWanted)
{
defaultGetoptPrinter("Some information about the program.",
@@ -22,7 +23,7 @@ int main(string[] argv)
//try
{
auto pc = new PetitComputer();
pc.run(nodirectmode, inputfile, antialiasing);
pc.run(nodirectmode, inputfile, antialiasing, redirectConsole);
}
/*(Throwable t)
{