23 #if !defined (octave_options_usage_h)
24 #define octave_options_usage_h 1
32 "octave [-HVWdfhiqvx] [--debug] [--debug-jit] [--doc-cache-file file]\n\
33 [--echo-commands] [--eval CODE] [--exec-path path]\n\
34 [--force-gui] [--help] [--image-path path]\n\
35 [--info-file file] [--info-program prog] [--interactive]\n\
36 [--jit-compiler] [--line-editing] [--no-gui] [--no-history]\n\
37 [--no-init-file] [--no-init-path] [--no-line-editing]\n\
38 [--no-site-file] [--no-window-system] [--norc] [-p path]\n\
39 [--path path] [--persist] [--silent] [--traditional]\n\
40 [--verbose] [--version] [file]";
49 #define BUILT_IN_DOCSTRINGS_FILE_OPTION 1
50 #define DOC_CACHE_FILE_OPTION 2
52 #define EXEC_PATH_OPTION 4
53 #define FORCE_GUI_OPTION 5
54 #define IMAGE_PATH_OPTION 6
55 #define INFO_FILE_OPTION 7
56 #define INFO_PROG_OPTION 8
57 #define DEBUG_JIT_OPTION 9
58 #define JIT_COMPILER_OPTION 10
59 #define LINE_EDITING_OPTION 11
60 #define NO_GUI_OPTION 12
61 #define NO_INIT_FILE_OPTION 13
62 #define NO_INIT_PATH_OPTION 14
63 #define NO_LINE_EDITING_OPTION 15
64 #define NO_SITE_FILE_OPTION 16
65 #define PERSIST_OPTION 17
66 #define TEXI_MACROS_FILE_OPTION 18
67 #define TRADITIONAL_OPTION 19
72 {
"debug", no_argument, 0,
'd' },
75 {
"echo-commands", no_argument, 0,
'x' },
79 {
"help", no_argument, 0,
'h' },
83 {
"interactive", no_argument, 0,
'i' },
87 {
"no-history", no_argument, 0,
'H' },
92 {
"no-window-system", no_argument, 0,
'W' },
93 {
"norc", no_argument, 0,
'f' },
94 {
"path", required_argument, 0,
'p' },
96 {
"quiet", no_argument, 0,
'q' },
97 {
"silent", no_argument, 0,
'q' },
100 {
"verbose", no_argument, 0,
'V' },
101 {
"version", no_argument, 0,
'v' },
113 Usage: octave [options] [FILE]\n\
117 --built-in-docstrings-file FILE Use docs for built-ins from FILE.\n\
118 --debug, -d Enter parser debugging mode.\n\
119 --debug-jit Enable JIT compiler debugging/tracing.\n\
120 --doc-cache-file FILE Use doc cache file FILE.\n\
121 --echo-commands, -x Echo commands as they are executed.\n\
122 --eval CODE Evaluate CODE. Exit when done unless --persist.\n\
123 --exec-path PATH Set path for executing subprograms.\n\
124 --force-gui Force graphical user interface to start.\n\
125 --help, -h, Print short help message and exit.\n\
126 --image-path PATH Add PATH to head of image search path.\n\
127 --info-file FILE Use top-level info file FILE.\n\
128 --info-program PROGRAM Use PROGRAM for reading info files.\n\
129 --interactive, -i Force interactive behavior.\n\
130 --jit-compiler Enable the JIT compiler.\n\
131 --line-editing Force readline use for command-line editing.\n\
132 --no-gui Disable the graphical user interface.\n\
133 --no-history, -H Don't save commands to the history list\n\
134 --no-init-file Don't read the ~/.octaverc or .octaverc files.\n\
135 --no-init-path Don't initialize function search path.\n\
136 --no-line-editing Don't use readline for command-line editing.\n\
137 --no-site-file Don't read the site-wide octaverc file.\n\
138 --no-window-system, -W Disable window system, including graphics.\n\
139 --norc, -f Don't read any initialization files.\n\
140 --path PATH, -p PATH Add PATH to head of function search path.\n\
141 --persist Go interactive after --eval or reading from FILE.\n\
142 --silent, --quiet, -q Don't print message at startup.\n\
143 --texi-macros-file FILE Use Texinfo macros in FILE for makeinfo command.\n\
144 --traditional Set variables for closer MATLAB compatibility.\n\
145 --verbose, -V Enable verbose output in some cases.\n\
146 --version, -v Print version number and exit.\n\
148 FILE Execute commands from FILE. Exit when done\n\
149 unless --persist is also specified.\n\
166 std::cerr <<
"\nusage: " << usage_string <<
"\n\n";
#define LINE_EDITING_OPTION
static void octave_print_version_and_exit(void)
#define IMAGE_PATH_OPTION
#define NO_SITE_FILE_OPTION
#define TRADITIONAL_OPTION
#define NO_LINE_EDITING_OPTION
struct option long_opts[]
#define TEXI_MACROS_FILE_OPTION
std::string octave_bugs_statement(bool html)
static void octave_print_terse_usage_and_exit(void)
std::string octave_www_statement(bool html)
std::string octave_contrib_statement(bool html)
std::string octave_name_version_copyright_copying_warranty_and_bugs(bool html, const std::string &extra_info)
static const char * short_opts
#define DOC_CACHE_FILE_OPTION
#define BUILT_IN_DOCSTRINGS_FILE_OPTION
static void octave_print_verbose_usage_and_exit(void)
static const char * usage_string
#define NO_INIT_PATH_OPTION
#define NO_INIT_FILE_OPTION
#define JIT_COMPILER_OPTION
std::string octave_name_version_copyright_copying_and_warranty(bool html, const std::string &extra_info)