GNU Octave 11.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
options.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 1993-2026 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if ! defined (octave_options_h)
27#define octave_options_h 1
28
29#include "octave-config.h"
30
31#include <iosfwd>
32
33// This is here so that it's more likely that the usage message and
34// the real set of options will agree. Note: the '+' must come first
35// to prevent getopt from permuting arguments!
36static const char *short_opts = "+GHWVe:fghip:qvx";
37
38// Long options. See the comments in getopt.h for the meanings of the
39// fields in this structure.
40#define BUILT_IN_DOCSTRINGS_FILE_OPTION 1
41#define DOC_CACHE_FILE_OPTION 2
42#define EXEC_PATH_OPTION 3
43#define EXPERIMENTAL_TERMINAL_WIDGET_OPTION 4
44#define IMAGE_PATH_OPTION 5
45#define INFO_FILE_OPTION 6
46#define INFO_PROG_OPTION 7
47#define LINE_EDITING_OPTION 8
48#define NO_GUI_LIBS_OPTION 9
49#define NO_INIT_USER_OPTION 10
50#define NO_INIT_PATH_OPTION 11
51#define NO_INIT_SITE_OPTION 12
52#define NO_LINE_EDITING_OPTION 13
53#define NO_STARTUP_TESTS_OPTION 14
54#define PERSIST_OPTION 15
55#define SERVER_OPTION 16
56#define TEXI_MACROS_FILE_OPTION 17
57#define TRADITIONAL_OPTION 18
59{
60 // Alias for --traditional, not displayed in help
61 { "braindead", octave_no_arg, nullptr, TRADITIONAL_OPTION },
62 // Option for developers, not displayed in help
63 { "built-in-docstrings-file", octave_required_arg, nullptr, BUILT_IN_DOCSTRINGS_FILE_OPTION },
64 // FIXME: Disabled debug option for parser 2023-12-29.
65 // Uncomment and restore code if Octave adds capability to
66 // immediately enter debug mode for a script.
67 // { "debug", octave_no_arg, nullptr, 'd' },
68 // Option for developers, not displayed in help
69 { "doc-cache-file", octave_required_arg, nullptr, DOC_CACHE_FILE_OPTION },
70 { "echo-commands", octave_no_arg, nullptr, 'x' },
71 { "eval", octave_required_arg, nullptr, 'e' },
72 // Option for developers, not displayed in help
73 { "exec-path", octave_required_arg, nullptr, EXEC_PATH_OPTION },
74 { "experimental-terminal-widget", octave_no_arg, nullptr, EXPERIMENTAL_TERMINAL_WIDGET_OPTION },
75 // Alias for --gui, not displayed in help, eventually will be deprecated
76 { "force-gui", octave_no_arg, nullptr, 'g' },
77 { "gui", octave_no_arg, nullptr, 'g' },
78 { "help", octave_no_arg, nullptr, 'h' },
79 // Option for developers, not displayed in help
80 { "image-path", octave_required_arg, nullptr, IMAGE_PATH_OPTION },
81 // Option for developers, not displayed in help
82 { "info-file", octave_required_arg, nullptr, INFO_FILE_OPTION },
83 // Option for developers, not displayed in help
84 { "info-program", octave_required_arg, nullptr, INFO_PROG_OPTION },
85 // Option for developers, not displayed in help
86 { "init-trace", octave_no_arg, nullptr, 'V' },
87 { "interactive", octave_no_arg, nullptr, 'i' },
88 { "line-editing", octave_no_arg, nullptr, LINE_EDITING_OPTION },
89 { "no-gui", octave_no_arg, nullptr, 'G' },
90 // Option for developers, not displayed in help
91 { "no-gui-libs", octave_no_arg, nullptr, NO_GUI_LIBS_OPTION },
92 { "no-history", octave_no_arg, nullptr, 'H' },
93 { "no-init-all", octave_no_arg, nullptr, 'f' },
94 // Alias for --no-init-user, not displayed in help
95 { "no-init-file", octave_no_arg, nullptr, NO_INIT_USER_OPTION },
96 { "no-init-path", octave_no_arg, nullptr, NO_INIT_PATH_OPTION },
97 { "no-init-user", octave_no_arg, nullptr, NO_INIT_USER_OPTION },
98 { "no-line-editing", octave_no_arg, nullptr, NO_LINE_EDITING_OPTION },
99 { "no-init-site", octave_no_arg, nullptr, NO_INIT_SITE_OPTION },
100 // Alias for --no-init-site, not displayed in help
101 { "no-site-file", octave_no_arg, nullptr, NO_INIT_SITE_OPTION },
102 { "no-startup-tests", octave_no_arg, nullptr, NO_STARTUP_TESTS_OPTION },
103 { "no-window-system", octave_no_arg, nullptr, 'W' },
104 { "norc", octave_no_arg, nullptr, 'f' },
105 { "path", octave_required_arg, nullptr, 'p' },
106 { "persist", octave_no_arg, nullptr, PERSIST_OPTION },
107 { "quiet", octave_no_arg, nullptr, 'q' },
108 { "server", octave_no_arg, nullptr, SERVER_OPTION },
109 { "silent", octave_no_arg, nullptr, 'q' },
110 // Option for developers, not displayed in help
111 { "texi-macros-file", octave_required_arg, nullptr, TEXI_MACROS_FILE_OPTION },
112 { "traditional", octave_no_arg, nullptr, TRADITIONAL_OPTION },
113 // Alias for --init-trace, not displayed in help, eventually will be deprecated
114 { "verbose", octave_no_arg, nullptr, 'V' },
115 { "version", octave_no_arg, nullptr, 'v' },
116 { nullptr, 0, nullptr, 0 }
117};
118
119#endif
#define octave_required_arg
#define octave_no_arg
#define INFO_FILE_OPTION
Definition options.h:45
#define NO_INIT_PATH_OPTION
Definition options.h:50
#define NO_INIT_SITE_OPTION
Definition options.h:51
#define LINE_EDITING_OPTION
Definition options.h:47
#define TRADITIONAL_OPTION
Definition options.h:57
#define INFO_PROG_OPTION
Definition options.h:46
#define BUILT_IN_DOCSTRINGS_FILE_OPTION
Definition options.h:40
#define NO_GUI_LIBS_OPTION
Definition options.h:48
#define SERVER_OPTION
Definition options.h:55
#define DOC_CACHE_FILE_OPTION
Definition options.h:41
#define EXPERIMENTAL_TERMINAL_WIDGET_OPTION
Definition options.h:43
#define NO_LINE_EDITING_OPTION
Definition options.h:52
#define TEXI_MACROS_FILE_OPTION
Definition options.h:56
#define NO_INIT_USER_OPTION
Definition options.h:49
struct octave_getopt_options long_opts[]
Definition options.h:58
#define EXEC_PATH_OPTION
Definition options.h:42
#define IMAGE_PATH_OPTION
Definition options.h:44
#define PERSIST_OPTION
Definition options.h:54
#define NO_STARTUP_TESTS_OPTION
Definition options.h:53