Add --redirect-console option

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

No files matched your search

+3 -2
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)
{