26#if ! defined (octave_usage_h)
27#define octave_usage_h 1
29#include "octave-config.h"
38static const char *usage_string =
39 "octave [-GHVWefghiqvx] [--echo-commands] [--eval CODE]\n\
40 [--experimental-terminal-widget] [--gui] [--help] [--interactive]\n\
41 [--line-editing] [--no-gui] [--no-history] [--no-init-all]\n\
42 [--no-init-path] [--no-init-site] [--no-init-user]\n\
43 [--no-line-editing] [--no-startup-tests] [--no-window-system]\n\
44 [--path path] [--persist] [--quiet] [--server] [--traditional]\n\
49octave_print_verbose_usage_and_exit ()
53Usage: octave [options] [FILE]\n\
62 --echo-commands, -x Echo commands as they are executed.\n\
63 --eval, -e CODE Evaluate CODE. Exit when done unless --persist.\n\
64 --experimental-terminal-widget\n\
65 Use new experimental terminal widget in the GUI.\n\
66 --gui, -g Start the graphical user interface.\n\
67 --help, -h, Print short help message and exit.\n\
68 --interactive, -i Force interactive behavior.\n\
69 --line-editing Force readline use for command-line editing.\n\
70 --no-gui, -G Disable the graphical user interface.\n\
71 --no-history, -H Don't save commands to the history list\n\
72 --no-init-all, --norc, -f\n\
73 Don't read any initialization files.\n\
74 --no-init-path Don't initialize function search path.\n\
75 --no-init-site Don't read the site-wide octaverc files.\n\
76 --no-init-user Don't read the ~/.octaverc or .octaverc files.\n\
77 --no-line-editing Don't use readline for command-line editing.\n\
78 --no-startup-tests Don't run compatibility tests on startup.\n\
79 --no-window-system, -W Disable window system, including graphics.\n\
80 --path PATH, -p PATH Add PATH to head of function search path.\n\
81 --persist Go interactive after --eval or reading from FILE.\n\
82 --server Enter server mode at startup.\n\
83 --quiet, --silent, -q Don't print message at startup.\n\
84 --traditional Set variables for closer MATLAB compatibility.\n\
85 --version, -v Print version information and exit.\n\
87 FILE Execute commands from FILE. Exit when done\n\
88 unless --persist is also specified.\n\
94 std::exit (EXIT_SUCCESS);
99octave_print_terse_usage_and_exit ()
101 std::cerr <<
"\nusage: " << usage_string <<
"\n\n";
103 std::exit (EXIT_FAILURE);
108octave_print_version_and_exit ()
112 std::exit (EXIT_SUCCESS);
std::string octave_name_version_copyright_license_copying_warranty(bool html, const std::string &extra_info)
std::string octave_bugs_statement(bool html)
std::string octave_www_statement(bool html)
std::string octave_name_version_copyright_license_copying_warranty_bugs(bool html, const std::string &extra_info)
std::string octave_contrib_statement(bool html)