From ac89ec94a3777c8abb790903b9626b329736b0a7 Mon Sep 17 00:00:00 2001
From: Richard Harrison <rjh@zaretto.com>
Date: Wed, 31 May 2017 11:38:13 +0200
Subject: [PATCH] Console: restore option to open console early.

---
 src/Main/options.cxx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Main/options.cxx b/src/Main/options.cxx
index 022318335..2a30a305f 100644
--- a/src/Main/options.cxx
+++ b/src/Main/options.cxx
@@ -2261,6 +2261,9 @@ int Options::parseOption(const string& s, bool fromConfigFile)
   } else if ( (s == "--verbose") || (s == "-v") ) {
     // verbose help/usage request
     return FG_OPTIONS_VERBOSE_HELP;
+  } else if ((s == "--console") || (s == "-c")) {
+      fgOptConsole(nullptr);
+	  return FG_OPTIONS_OK;
   } else if (s.find("-psn") == 0) {
     // on Mac, when launched from the GUI, we are passed the ProcessSerialNumber
     // as an argument (and no others). Silently ignore the argument here.