GNU Octave 10.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-2025 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 = "+GHWVde: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_LINE_EDITING_OPTION 12
52#define NO_INIT_SITE_OPTION 13
53#define PERSIST_OPTION 14
54#define SERVER_OPTION 15
55#define TEXI_MACROS_FILE_OPTION 16
56#define TRADITIONAL_OPTION 17
58{
59 // Alias for --traditional, not displayed in help
60 { "braindead", octave_no_arg, nullptr, TRADITIONAL_OPTION },
61 // Option for developers, not displayed in help
62 { "built-in-docstrings-file", octave_required_arg, nullptr, BUILT_IN_DOCSTRINGS_FILE_OPTION },
63 // FIXME: Disabled debug option for parser 2023-12-29.
64 // Uncomment and restore code if Octave adds capability to
65 // immediately enter debug mode for a script.
66 // { "debug", octave_no_arg, nullptr, 'd' },
67 // Option for developers, not displayed in help
68 { "doc-cache-file", octave_required_arg, nullptr, DOC_CACHE_FILE_OPTION },
69 { "echo-commands", octave_no_arg, nullptr, 'x' },
70 { "eval", octave_required_arg, nullptr, 'e' },
71 // Option for developers, not displayed in help
72 { "exec-path", octave_required_arg, nullptr, EXEC_PATH_OPTION },
73 { "experimental-terminal-widget", octave_no_arg, nullptr, EXPERIMENTAL_TERMINAL_WIDGET_OPTION },
74 // Alias for --gui, not displayed in help, eventually will be deprecated
75 { "force-gui", octave_no_arg, nullptr, 'g' },
76 { "gui", octave_no_arg, nullptr, 'g' },
77 { "help", octave_no_arg, nullptr, 'h' },
78 // Option for developers, not displayed in help
79 { "image-path", octave_required_arg, nullptr, IMAGE_PATH_OPTION },
80 // Option for developers, not displayed in help
81 { "info-file", octave_required_arg, nullptr, INFO_FILE_OPTION },
82 // Option for developers, not displayed in help
83 { "info-program", octave_required_arg, nullptr, INFO_PROG_OPTION },
84 // Option for developers, not displayed in help
85 { "init-trace", octave_no_arg, nullptr, 'V' },
86 { "interactive", octave_no_arg, nullptr, 'i' },
87 { "line-editing", octave_no_arg, nullptr, LINE_EDITING_OPTION },
88 { "no-gui", octave_no_arg, nullptr, 'G' },
89 // Option for developers, not displayed in help
90 { "no-gui-libs", octave_no_arg, nullptr, NO_GUI_LIBS_OPTION },
91 { "no-history", octave_no_arg, nullptr, 'H' },
92 { "no-init-all", octave_no_arg, nullptr, 'f' },
93 // Alias for --no-init-user, not displayed in help
94 { "no-init-file", octave_no_arg, nullptr, NO_INIT_USER_OPTION },
95 { "no-init-path", octave_no_arg, nullptr, NO_INIT_PATH_OPTION },
96 { "no-init-user", octave_no_arg, nullptr, NO_INIT_PATH_OPTION },
97 { "no-line-editing", octave_no_arg, nullptr, NO_LINE_EDITING_OPTION },
98 { "no-init-site", octave_no_arg, nullptr, NO_INIT_SITE_OPTION },
99 // Alias for --no-init-site, not displayed in help
100 { "no-site-file", octave_no_arg, nullptr, NO_INIT_SITE_OPTION },
101 { "no-window-system", octave_no_arg, nullptr, 'W' },
102 { "norc", octave_no_arg, nullptr, 'f' },
103 { "path", octave_required_arg, nullptr, 'p' },
104 { "persist", octave_no_arg, nullptr, PERSIST_OPTION },
105 { "quiet", octave_no_arg, nullptr, 'q' },
106 { "server", octave_no_arg, nullptr, SERVER_OPTION },
107 { "silent", octave_no_arg, nullptr, 'q' },
108 // Option for developers, not displayed in help
109 { "texi-macros-file", octave_required_arg, nullptr, TEXI_MACROS_FILE_OPTION },
110 { "traditional", octave_no_arg, nullptr, TRADITIONAL_OPTION },
111 // Alias for --init-trace, not displayed in help, eventually will be deprecated
112 { "verbose", octave_no_arg, nullptr, 'V' },
113 { "version", octave_no_arg, nullptr, 'v' },
114 { nullptr, 0, nullptr, 0 }
115};
116
117#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:52
#define LINE_EDITING_OPTION
Definition options.h:47
#define TRADITIONAL_OPTION
Definition options.h:56
#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:54
#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:51
#define TEXI_MACROS_FILE_OPTION
Definition options.h:55
#define NO_INIT_USER_OPTION
Definition options.h:49
struct octave_getopt_options long_opts[]
Definition options.h:57
#define EXEC_PATH_OPTION
Definition options.h:42
#define IMAGE_PATH_OPTION
Definition options.h:44
#define PERSIST_OPTION
Definition options.h:53