changeset 19634:6ba5f1ff041e

Don't print start-up message when input is a non-interactive script. * octave.cc (octave_process_command_line): Check for code to eval or a script file in input args and set inhibit_startup_messag if found.
author Rik <rik@octave.org>
date Tue, 20 Jan 2015 17:34:56 -0800
parents 76478d2da117
children 228cfaf24208
files libinterp/octave.cc
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/octave.cc	Tue Jan 20 13:43:29 2015 -0500
+++ b/libinterp/octave.cc	Tue Jan 20 17:34:56 2015 -0800
@@ -711,6 +711,9 @@
       octave_print_terse_usage_and_exit ();
     }
 
+  // Don't print start-up message when directly executing a script
+  if (! code_to_eval.empty () || script_file)
+    inhibit_startup_message = true;
 }
 
 // EMBEDDED is declared int instead of bool because this function is