Mercurial > hg > octave-nkf
diff src/main.in.cc @ 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 |
line wrap: on
line diff
--- a/src/main.in.cc +++ b/src/main.in.cc @@ -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]; }