changeset 20073:6b78feb92f53

Accept, but warn about unimplemented Matlab print options (bug #44760). * __print_parse_opts__.m: Accept, but Warn about '-opengl', '-painters', and '-noui' options.
author Rik <rik@octave.org>
date Tue, 07 Apr 2015 10:42:31 -0700
parents 76c72314d905
children 3538c2824dd8
files scripts/plot/util/private/__print_parse_opts__.m
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__print_parse_opts__.m	Tue Apr 07 12:12:59 2015 -0400
+++ b/scripts/plot/util/private/__print_parse_opts__.m	Tue Apr 07 10:42:31 2015 -0700
@@ -156,6 +156,10 @@
         arg_st.ghostscript.resolution = str2double (arg(3:end));
       elseif (length (arg) > 2 && arg(1:2) == "-f")
         arg_st.figure = str2num (arg(3:end));
+      elseif (any (strcmp (arg, {"-painters", "-opengl"})))
+        warning ("print: '%s' accepted for Matlab compatibility, but is ignored", arg);
+      elseif (strcmp (arg, "-noui"))
+        warning ("print: option '-noui' not yet implemented");
       elseif (length (arg) >= 1 && arg(1) == "-")
         error ("print: unknown option '%s'", arg);
       elseif (length (arg) > 0)