28 #if defined (HAVE_CONFIG_H)
61 m_all_args.resize (1);
162 #if defined (HAVE_QSCINTILLA)
251 m.assign (
"gui",
gui ());
259 m.assign (
"server",
server ());
281 : m_options (argc, argv)
307 m_program_name = (pos != std::string::npos) ? pname.substr (pos+1) : pname;
372 throw std::runtime_error
373 (
"only one Octave application object may be active");
391 std::cerr << R
"(error: --eval "CODE" and script file are mutually exclusive options)" << std::endl;
400 std::cerr <<
"error: --gui and --no-window-system are mutually exclusive options" << std::endl;
405 std::cerr <<
"error: --gui and --no-line-editing are mutually exclusive options" << std::endl;
410 std::cerr <<
"error: --gui and --server are mutually exclusive options" << std::endl;
427 int status = interp.
execute ();
432 DEFUN (isguirunning, args, ,
439 if (args.length () != 0)
474 if (args.length () != 0)
497 if (args.length () != 0)
503 error (
"invalid application context!");
515 DEFUN (program_invocation_name, args, ,
529 if (args.length () != 0)
540 DEFUN (program_name, args, ,
549 if (args.length () != 0)
application(const cmdline_options &opts=cmdline_options())
static application * app(void)
cmdline_options options(void) const
static string_vector argv(void)
void set_program_names(const std::string &pname)
static bool forced_interactive(void)
virtual ~application(void)
bool experimental_terminal_widget(void) const
static std::string program_invocation_name(void)
void intern_argv(const string_vector &args)
bool interpreter_initialized(void)
static bool is_gui_running(void)
virtual void delete_interpreter(void)
virtual interpreter & create_interpreter(void)
static application * s_instance
bool m_have_eval_option_code
std::string m_program_name
virtual int execute_interpreter(void)
std::unique_ptr< interpreter > m_interpreter
static std::string program_name(void)
cmdline_options m_options
std::string m_program_invocation_name
virtual void initialize_interpreter(void)
std::string info_file(void) const
std::string docstrings_file(void) const
std::list< std::string > m_command_line_path
std::string m_doc_cache_file
string_vector m_remaining_args
std::string m_texi_macros_file
bool m_inhibit_startup_message
octave_value as_octave_value(void) const
bool m_forced_interactive
bool line_editing(void) const
std::string doc_cache_file(void) const
std::string texi_macros_file(void) const
bool m_forced_line_editing
string_vector remaining_args(void) const
std::string m_info_program
bool verbose_flag(void) const
bool no_window_system(void) const
std::string exec_path(void) const
bool m_experimental_terminal_widget
char ** sys_argv(void) const
string_vector all_args(void) const
bool traditional(void) const
bool forced_interactive(void) const
std::string code_to_eval(void) const
bool read_site_files(void) const
bool experimental_terminal_widget(void) const
bool forced_line_editing(void) const
bool read_history_file(void) const
bool set_initial_path(void) const
std::list< std::string > command_line_path(void) const
std::string info_program(void) const
std::string image_path(void) const
std::string m_code_to_eval
bool inhibit_startup_message(void) const
bool echo_commands(void) const
std::string m_docstrings_file
bool read_init_files(void) const
void resize(octave_idx_type n, const std::string &rfv="")
octave_idx_type numel(void) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
void error(const char *fmt,...)
#define panic_impossible()
char * octave_optarg_wrapper(void)
int octave_getopt_long_wrapper(int argc, char **argv, const char *shortopts, const struct octave_getopt_options *longopts, int *longind)
int octave_optind_wrapper(void)
#define NO_INIT_PATH_OPTION
#define LINE_EDITING_OPTION
#define TRADITIONAL_OPTION
static const char * short_opts
#define BUILT_IN_DOCSTRINGS_FILE_OPTION
#define DOC_CACHE_FILE_OPTION
#define EXPERIMENTAL_TERMINAL_WIDGET_OPTION
#define NO_SITE_FILE_OPTION
#define NO_LINE_EDITING_OPTION
#define TEXI_MACROS_FILE_OPTION
struct octave_getopt_options long_opts[]
#define IMAGE_PATH_OPTION
#define NO_INIT_FILE_OPTION
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.
static std::string dir_sep_chars
static void octave_print_verbose_usage_and_exit(void)
static void octave_print_version_and_exit(void)
static void octave_print_terse_usage_and_exit(void)