changeset 18008:2831a949a219

Restore passing '--silent' option from octave wrapper executable * src/main.in.cc (main): Append '--silent' and variants to new_argv. Add '--quiet' to the list of options handled by the wrapper.
author Mike Miller <mtmiller@ieee.org>
date Mon, 25 Nov 2013 22:11:37 -0500
parents 25b6fbe82827
children 6df05f2fd354
files src/main.in.cc
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main.in.cc	Mon Nov 25 19:10:33 2013 -0800
+++ b/src/main.in.cc	Mon Nov 25 22:11:37 2013 -0500
@@ -636,8 +636,12 @@
 
           // This option calls the cli executable for the 3.8 release.
         }
-      else if (! strcmp (argv[i], "--silent") || ! strcmp (argv[i], "-q"))
-        warn_display = false;
+      else if (! strcmp (argv[i], "--silent") || ! strcmp (argv[i], "--quiet")
+               || ! strcmp (argv[i], "-q"))
+        {
+          warn_display = false;
+          new_argv[k++] = argv[i];
+        }
       else
         new_argv[k++] = argv[i];
     }