changeset 25187:9bb58f9580f4 stable

restore proper handling of the --force-gui option (bug #53536) * main.in.cc (main): Handle the --gui and --force-gui options equivalently.
author Mike Miller <mtmiller@octave.org>
date Mon, 09 Apr 2018 14:20:08 -0700
parents 559e4821c3f7
children bd0631439f8c
files src/main.in.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.in.cc	Mon Apr 09 17:18:18 2018 -0400
+++ b/src/main.in.cc	Mon Apr 09 14:20:08 2018 -0700
@@ -257,7 +257,7 @@
           start_gui = false;
           new_argv[k++] = argv[i];
         }
-      else if (! strcmp (argv[i], "--gui"))
+      else if (! strcmp (argv[i], "--gui") || ! strcmp (argv[i], "--force-gui"))
         {
           // If we see this option, then we fork and exec octave with
           // the --gui option, while continuing to handle signals in the