diff libinterp/octave.h @ 29152:556f20454064

make all command line option info available in scripting language * octave.h, octave.cc (Fcmdline_options): New function. (cmdline_options::as_octave_value): New function.
author John W. Eaton <jwe@octave.org>
date Thu, 03 Dec 2020 12:28:59 -0500
parents bd51beb6205e
children 11343ca3c125
line wrap: on
line diff
--- a/libinterp/octave.h	Sat Dec 05 13:29:48 2020 -0500
+++ b/libinterp/octave.h	Thu Dec 03 12:28:59 2020 -0500
@@ -33,6 +33,8 @@
 
 #include "str-vec.h"
 
+class octave_value;
+
 namespace octave
 {
   // Command line arguments.  See also options-usage.h.
@@ -112,6 +114,8 @@
     void all_args (const string_vector& arg) { m_all_args = arg; }
     void remaining_args (const string_vector& arg) { m_remaining_args = arg; }
 
+    octave_value as_octave_value (void) const;
+
   private:
 
     // TRUE means enable debug tracing for the JIT compiler.