This file is indexed.

/usr/share/doc/octave/octave.html/Command-Line-Options.html is in octave-doc 4.2.2-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Command Line Options (GNU Octave)</title>

<meta name="description" content="Command Line Options (GNU Octave)">
<meta name="keywords" content="Command Line Options (GNU Octave)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<link href="index.html#Top" rel="start" title="Top">
<link href="Concept-Index.html#Concept-Index" rel="index" title="Concept Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Invoking-Octave-from-the-Command-Line.html#Invoking-Octave-from-the-Command-Line" rel="up" title="Invoking Octave from the Command Line">
<link href="Startup-Files.html#Startup-Files" rel="next" title="Startup Files">
<link href="Invoking-Octave-from-the-Command-Line.html#Invoking-Octave-from-the-Command-Line" rel="prev" title="Invoking Octave from the Command Line">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smalllisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
<link rel="stylesheet" type="text/css" href="octave.css">


</head>

<body lang="en">
<a name="Command-Line-Options"></a>
<div class="header">
<p>
Next: <a href="Startup-Files.html#Startup-Files" accesskey="n" rel="next">Startup Files</a>, Up: <a href="Invoking-Octave-from-the-Command-Line.html#Invoking-Octave-from-the-Command-Line" accesskey="u" rel="up">Invoking Octave from the Command Line</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="Command-Line-Options-1"></a>
<h4 class="subsection">2.1.1 Command Line Options</h4>
<a name="index-Octave-command-options"></a>
<a name="index-command-options"></a>
<a name="index-options_002c-Octave-command"></a>

<p>Here is a complete list of the command line options that Octave
accepts.
</p>

<dl compact="compact">
<dt><code>--built-in-docstrings-file <var>filename</var></code></dt>
<dd><a name="index-_002d_002dbuilt_002din_002ddocstrings_002dfile-filename"></a>
<p>Specify the name of the file containing documentation strings for the
built-in functions of Octave.  This value is normally correct and should
only need to specified in extraordinary situations.
</p>
</dd>
<dt><code>--debug</code></dt>
<dt><code>-d</code></dt>
<dd><a name="index-_002d_002ddebug"></a>
<a name="index-_002dd"></a>
<p>Enter parser debugging mode.  Using this option will cause Octave&rsquo;s
parser to print a lot of information about the commands it reads, and is
probably only useful if you are actually trying to debug the parser.
</p>
</dd>
<dt><code>--debug-jit</code></dt>
<dd><a name="index-_002d_002ddebug_002djit"></a>
<p>Enable JIT compiler debugging and tracing.
</p>
</dd>
<dt><code>--doc-cache-file <var>filename</var></code></dt>
<dd><a name="index-_002d_002ddoc_002dcache_002dfile-filename"></a>
<p>Specify the name of the doc cache file to use.  The value of <var>filename</var>
specified on the command line will override any value of
<code><span class="nolinebreak">OCTAVE_DOC_CACHE_FILE</span></code><!-- /@w --> found in the environment, but not any commands
in the system or user startup files that use the <code>doc_cache_file</code>
function.
</p>
</dd>
<dt><code>--echo-commands</code></dt>
<dt><code>-x</code></dt>
<dd><a name="index-_002d_002decho_002dcommands"></a>
<a name="index-_002dx"></a>
<p>Echo commands as they are executed.
</p>
</dd>
<dt><code>--eval <var>code</var></code></dt>
<dd><p>Evaluate <var>code</var> and exit when finished unless <samp>--persist</samp> is also
specified.
</p>
</dd>
<dt><code>--exec-path <var>path</var></code></dt>
<dd><a name="index-_002d_002dexec_002dpath-path"></a>
<p>Specify the path to search for programs to run.  The value of <var>path</var>
specified on the command line will override any value of
<code><span class="nolinebreak">OCTAVE_EXEC_PATH</span></code><!-- /@w --> found in the environment, but not any commands
in the system or user startup files that set the built-in variable
<code><span class="nolinebreak">EXEC_PATH</span></code><!-- /@w -->.
</p>
</dd>
<dt><code>--force-gui</code></dt>
<dd><a name="index-_002d_002dforce_002dgui"></a>
<p>Force the graphical user interface (GUI) to start.
</p>
</dd>
<dt><code>--help</code></dt>
<dt><code>-h</code></dt>
<dt><code>-?</code></dt>
<dd><a name="index-_002d_002dhelp"></a>
<a name="index-_002dh"></a>
<a name="index-_002d_003f"></a>
<p>Print short help message and exit.
</p>
</dd>
<dt><code>--image-path <var>path</var></code></dt>
<dd><a name="index-_002d_002dimage_002dpath-path"></a>
<p>Add path to the head of the search path for images.  The value of
<var>path</var> specified on the command line will override any value of
<code><span class="nolinebreak">OCTAVE_IMAGE_PATH</span></code><!-- /@w --> found in the environment, but not any commands
in the system or user startup files that set the built-in variable
<code><span class="nolinebreak">IMAGE_PATH</span></code><!-- /@w -->.
</p>
</dd>
<dt><code>--info-file <var>filename</var></code></dt>
<dd><a name="index-_002d_002dinfo_002dfile-filename"></a>
<p>Specify the name of the info file to use.  The value of <var>filename</var>
specified on the command line will override any value of
<code><span class="nolinebreak">OCTAVE_INFO_FILE</span></code><!-- /@w --> found in the environment, but not any commands
in the system or user startup files that use the <code>info_file</code>
function.
</p>
</dd>
<dt><code>--info-program <var>program</var></code></dt>
<dd><a name="index-_002d_002dinfo_002dprogram-program"></a>
<p>Specify the name of the info program to use.  The value of <var>program</var>
specified on the command line will override any value of
<code><span class="nolinebreak">OCTAVE_INFO_PROGRAM</span></code><!-- /@w --> found in the environment, but not any
commands in the system or user startup files that use the
<code>info_program</code> function.
</p>
</dd>
<dt><code>--interactive</code></dt>
<dt><code>-i</code></dt>
<dd><a name="index-_002d_002dinteractive"></a>
<a name="index-_002di"></a>
<p>Force interactive behavior.  This can be useful for running Octave via a
remote shell command or inside an Emacs shell buffer.
</p>
</dd>
<dt><code>--jit-compiler</code></dt>
<dd><a name="index-_002d_002djit_002dcompiler"></a>
<p>Enable the JIT compiler used for accelerating loops.
</p>
</dd>
<dt><code>--line-editing</code></dt>
<dd><a name="index-_002d_002dline_002dediting"></a>
<p>Force readline use for command-line editing.
</p>
</dd>
<dt><code>--no-gui</code></dt>
<dd><a name="index-_002d_002dno_002dgui"></a>
<p>Disable the graphical user interface (GUI) and use the command line
interface (CLI) instead.
</p>
</dd>
<dt><code>--no-history</code></dt>
<dt><code>-H</code></dt>
<dd><a name="index-_002d_002dno_002dhistory"></a>
<a name="index-_002dH"></a>
<p>Disable recording of command-line history.
</p>
</dd>
<dt><code>--no-init-file</code></dt>
<dd><a name="index-_002d_002dno_002dinit_002dfile"></a>
<p>Don&rsquo;t read the initialization files <samp>~/.octaverc</samp> and <samp>.octaverc</samp>.
</p>
</dd>
<dt><code>--no-init-path</code></dt>
<dd><a name="index-_002d_002dno_002dinit_002dpath"></a>
<p>Don&rsquo;t initialize the search path for function files to include default
locations.
</p>
</dd>
<dt><code>--no-line-editing</code></dt>
<dd><a name="index-_002d_002dno_002dline_002dediting"></a>
<p>Disable command-line editing.
</p>
</dd>
<dt><code>--no-site-file</code></dt>
<dd><a name="index-_002d_002dno_002dsite_002dfile"></a>
<p>Don&rsquo;t read the site-wide <samp>octaverc</samp> initialization files.
</p>
</dd>
<dt><code>--no-window-system</code></dt>
<dt><code>-W</code></dt>
<dd><a name="index-_002d_002dno_002dwindow_002dsystem"></a>
<p>Disable use of a windowing system including graphics.  This forces a
strictly terminal-only environment.
</p>
</dd>
<dt><code>--norc</code></dt>
<dt><code>-f</code></dt>
<dd><a name="index-_002d_002dnorc"></a>
<a name="index-_002df"></a>
<p>Don&rsquo;t read any of the system or user initialization files at startup.
This is equivalent to using both of the options <samp>--no-init-file</samp>
and <samp>--no-site-file</samp>.
</p>
</dd>
<dt><code>--path <var>path</var></code></dt>
<dt><code>-p <var>path</var></code></dt>
<dd><a name="index-_002d_002dpath-path"></a>
<a name="index-_002dp-path"></a>
<p>Add path to the head of the search path for function files.  The
value of <var>path</var> specified on the command line will override any value
of <code><span class="nolinebreak">OCTAVE_PATH</span></code><!-- /@w --> found in the environment, but not any commands in the
system or user startup files that set the internal load path through one
of the path functions.
</p>
</dd>
<dt><code>--persist</code></dt>
<dd><a name="index-_002d_002dpersist"></a>
<p>Go to interactive mode after <samp>--eval</samp> or reading from a file
named on the command line.
</p>
</dd>
<dt><code>--silent</code></dt>
<dt><code>--quiet</code></dt>
<dt><code>-q</code></dt>
<dd><a name="index-_002d_002dsilent"></a>
<a name="index-_002d_002dquiet"></a>
<a name="index-_002dq"></a>
<p>Don&rsquo;t print the usual greeting and version message at startup.
</p>
</dd>
<dt><code>--texi-macros-file <var>filename</var></code></dt>
<dd><a name="index-_002d_002dtexi_002dmacros_002dfile-filename"></a>
<p>Specify the name of the file containing Texinfo macros for use by makeinfo.
</p>
</dd>
<dt><code>--traditional</code></dt>
<dt><code>--braindead</code></dt>
<dd><a name="index-_002d_002dtraditional"></a>
<a name="index-_002d_002dbraindead"></a>
<p>For compatibility with <small>MATLAB</small>, set initial values for
user preferences to the following values
</p>
<div class="example">
<pre class="example">PS1                             = &quot;&gt;&gt; &quot;
PS2                             = &quot;&quot;
beep_on_error                   = true
confirm_recursive_rmdir         = false
crash_dumps_octave_core         = false
disable_diagonal_matrix         = true
disable_permutation_matrix      = true
disable_range                   = true
fixed_point_format              = true
history_timestamp_format_string = &quot;%%-- %D %I:%M %p --%%&quot;
page_screen_output              = false
print_empty_dimensions          = false
save_default_options            = &quot;-mat-binary&quot;
struct_levels_to_print          = 0
</pre></div>

<p>and disable the following warnings
</p>
<div class="example">
<pre class="example">Octave:abbreviated-property-match
Octave:fopen-file-in-path
Octave:function-name-clash
Octave:load-file-in-path
Octave:possible-matlab-short-circuit-operator
</pre></div>

<p>Note that this does not enable the <code>Octave:language-extension</code>
warning, which you might want if you want to be told about writing code
that works in Octave but not <small>MATLAB</small> (see <a href="Issuing-Warnings.html#XREFwarning">warning</a>,
<a href="Issuing-Warnings.html#XREFwarning_005fids">warning_ids</a>).
</p>
</dd>
<dt><code>--verbose</code></dt>
<dt><code>-V</code></dt>
<dd><a name="index-_002d_002dverbose"></a>
<a name="index-_002dV"></a>
<p>Turn on verbose output.
</p>
</dd>
<dt><code>--version</code></dt>
<dt><code>-v</code></dt>
<dd><a name="index-_002d_002dversion"></a>
<a name="index-_002dv"></a>
<p>Print the program version number and exit.
</p>
</dd>
<dt><code><var>file</var></code></dt>
<dd><p>Execute commands from <var>file</var>.  Exit when done unless
<samp>--persist</samp> is also specified.
</p></dd>
</dl>

<p>Octave also includes several functions which return information
about the command line, including the number of arguments and all of the
options.
</p>
<a name="XREFargv"></a><dl>
<dt><a name="index-argv"></a>: <em></em> <strong>argv</strong> <em>()</em></dt>
<dd><p>Return the command line arguments passed to Octave.
</p>
<p>For example, if you invoked Octave using the command
</p>
<div class="example">
<pre class="example">octave --no-line-editing --silent
</pre></div>

<p><code>argv</code> would return a cell array of strings with the elements
<samp>--no-line-editing</samp> and <samp>--silent</samp>.
</p>
<p>If you write an executable Octave script, <code>argv</code> will return the list
of arguments passed to the script.  See <a href="Executable-Octave-Programs.html#Executable-Octave-Programs">Executable Octave Programs</a>, for
an example of how to create an executable Octave script.
</p></dd></dl>


<a name="XREFprogram_005fname"></a><dl>
<dt><a name="index-program_005fname"></a>: <em></em> <strong>program_name</strong> <em>()</em></dt>
<dd><p>Return the last component of the value returned by
<code>program_invocation_name</code>.
</p>
<p><strong>See also:</strong> <a href="#XREFprogram_005finvocation_005fname">program_invocation_name</a>.
</p></dd></dl>


<a name="XREFprogram_005finvocation_005fname"></a><dl>
<dt><a name="index-program_005finvocation_005fname"></a>: <em></em> <strong>program_invocation_name</strong> <em>()</em></dt>
<dd><p>Return the name that was typed at the shell prompt to run Octave.
</p>
<p>If executing a script from the command line (e.g., <code>octave foo.m</code>)
or using an executable Octave script, the program name is set to the
name of the script.  See <a href="Executable-Octave-Programs.html#Executable-Octave-Programs">Executable Octave Programs</a>, for an example of
how to create an executable Octave script.
</p>
<p><strong>See also:</strong> <a href="#XREFprogram_005fname">program_name</a>.
</p></dd></dl>


<p>Here is an example of using these functions to reproduce the command
line which invoked Octave.
</p>
<div class="example">
<pre class="example">printf (&quot;%s&quot;, program_name ());
arg_list = argv ();
for i = 1:nargin
  printf (&quot; %s&quot;, arg_list{i});
endfor
printf (&quot;\n&quot;);
</pre></div>

<p>See <a href="Indexing-Cell-Arrays.html#Indexing-Cell-Arrays">Indexing Cell Arrays</a>, for an explanation of how to retrieve objects
from cell arrays, and <a href="Defining-Functions.html#Defining-Functions">Defining Functions</a>, for information about the
variable <code>nargin</code>.
</p>
<hr>
<div class="header">
<p>
Next: <a href="Startup-Files.html#Startup-Files" accesskey="n" rel="next">Startup Files</a>, Up: <a href="Invoking-Octave-from-the-Command-Line.html#Invoking-Octave-from-the-Command-Line" accesskey="u" rel="up">Invoking Octave from the Command Line</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html#Concept-Index" title="Index" rel="index">Index</a>]</p>
</div>



</body>
</html>