comparison libinterp/octave.cc @ 19600: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 db92e7e28e1f
children f3ac54ac2c6a
comparison
equal deleted inserted replaced
19598:76478d2da117 19600:6ba5f1ff041e
709 error ("--eval \"CODE\" and script file are mutually exclusive options"); 709 error ("--eval \"CODE\" and script file are mutually exclusive options");
710 710
711 octave_print_terse_usage_and_exit (); 711 octave_print_terse_usage_and_exit ();
712 } 712 }
713 713
714 // Don't print start-up message when directly executing a script
715 if (! code_to_eval.empty () || script_file)
716 inhibit_startup_message = true;
714 } 717 }
715 718
716 // EMBEDDED is declared int instead of bool because this function is 719 // EMBEDDED is declared int instead of bool because this function is
717 // declared extern "C". 720 // declared extern "C".
718 721