28 #if defined (HAVE_CONFIG_H)
242 : m_options (argc, argv)
260 m_program_name = (pos != std::string::npos) ? pname.substr (pos+1) : pname;
328 throw std::runtime_error
329 (
"only one Octave application object may be active");
347 std::cerr << R
"(error: --eval "CODE" and script file are mutually exclusive options)" << std::endl;
356 std::cerr <<
"error: --gui and --no-window-system are mutually exclusive options" << std::endl;
361 std::cerr <<
"error: --gui and --no-line-editing are mutually exclusive options" << std::endl;
379 int status = interp.
execute ();
387 DEFUN (isguirunning, args, ,
394 if (args.length () != 0)
428 if (args.length () != 0)
439 DEFUN (program_invocation_name, args, ,
451 if (args.length () != 0)
462 DEFUN (program_name, args, ,
470 if (args.length () != 0)
void intern_argv(const string_vector &args)
virtual int execute_interpreter(void)
static bool forced_interactive(void)
static bool is_gui_running(void)
void set_program_names(const std::string &pname)
static std::string program_name(void)
static std::string program_invocation_name(void)
application(const cmdline_options &opts=cmdline_options())
interpreter * m_interpreter
std::string m_program_name
virtual void delete_interpreter(void)
static application * instance
bool interpreter_initialized(void)
virtual interpreter & create_interpreter(void)
cmdline_options m_options
virtual ~application(void)
virtual void initialize_interpreter(void)
bool m_have_eval_option_code
static string_vector argv(void)
std::string m_program_invocation_name
bool m_forced_line_editing
std::string m_doc_cache_file
bool line_editing(void) const
bool traditional(void) const
std::list< std::string > m_command_line_path
std::string m_texi_macros_file
std::string m_info_program
bool m_forced_interactive
bool forced_interactive(void) const
std::string m_docstrings_file
string_vector remaining_args(void) const
string_vector m_remaining_args
std::string m_code_to_eval
bool m_inhibit_startup_message
bool no_window_system(void) const
std::string code_to_eval(void) const
string_vector all_args(void) const
bool initialized(void) const
void resize(octave_idx_type n, const std::string &rfv="")
octave_idx_type numel(void) const
OCTINTERP_API void print_usage(void)
#define DEFUN(name, args_name, nargout_name, doc)
Macro to define a builtin function.
#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)
std::string dir_sep_chars(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
static void octave_print_verbose_usage_and_exit(void)
#define JIT_COMPILER_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
static void octave_print_version_and_exit(void)
#define NO_INIT_FILE_OPTION
static void octave_print_terse_usage_and_exit(void)
octave_value_list ovl(const OV_Args &... args)
Construct an octave_value_list with less typing.