changeset 18010:dc58d4810de6 stable

main.in.cc: Respect --silent option and don't print startup message. * main.in.cc (main): Pass "--silent" option and friends on to octave executable rather than filtering it out.
author Rik <rik@octave.org>
date Mon, 25 Nov 2013 20:57:13 -0800
parents 13c0c762fae1
children 0d6d0a7c0793
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 20:51:29 2013 -0800
+++ b/src/main.in.cc	Mon Nov 25 20:57:13 2013 -0800
@@ -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], "-q")
+               || ! strcmp (argv[i], "--quiet"))
+        {
+          warn_display = false;
+          new_argv[k++] = argv[i];
+        }
       else
         new_argv[k++] = argv[i];
     }