changeset 15571:7b9551c65b7b

Don't report '-struct' as an unrecognized option to save(). * load-save.cc(parse_save_options): Add '-struct' as additional valid save option.
author Rik <rik@octave.org>
date Tue, 30 Oct 2012 22:10:26 -0700
parents cf191298a287
children 859c8bf6d134
files libinterp/interpfcn/load-save.cc
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/interpfcn/load-save.cc	Tue Oct 30 11:38:02 2012 -0700
+++ b/libinterp/interpfcn/load-save.cc	Tue Oct 30 22:10:26 2012 -0700
@@ -1121,6 +1121,10 @@
           use_zlib  = true;
         }
 #endif
+      else if (argv[i] == "-struct")
+        {
+          retval.append (argv[i]);
+        }
       else if (argv[i][0] == '-')
         {
           error ("save: Unrecognized option '%s'", argv[i].c_str ());