| www.delorie.com/gnu/docs/octave/octave_26.html | search |
![]() Buy GNU books! | |
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
Here is a complete list of all the command line options that Octave accepts.
--debug
-d
--echo-commands
-x
--exec-path path
OCTAVE_EXEC_PATH found in the environment, but not any commands
in the system or user startup files that set the built-in variable
EXEC_PATH.
--help
-h
-?
--info-file filename
OCTAVE_INFO_FILE found in the environment, but not any commands
in the system or user startup files that set the built-in variable
INFO_FILE.
--info-program program
OCTAVE_INFO_PROGRAM found in the environment, but not any
commands in the system or user startup files that set the built-in
variable INFO_PROGRAM.
--interactive
-i
--no-init-file
--no-line-editing
--no-site-file
--norc
-f
--no-init-file
and --no-site-file.
--path path
-p path
OCTAVE_PATH found in the environment, but not any commands in the
system or user startup files that set the built-in variable LOADPATH.
--silent
--quiet
-q
--traditional
--braindead
PS1 = ">> " PS2 = "" beep_on_error = 1 default_save_format = "mat-binary" define_all_return_values = 1 do_fortran_indexing = 1 crash_dumps_octave_core = 0 empty_list_elements_ok = 1 implicit_str_to_num_ok = 1 ok_to_lose_imaginary_part = 1 page_screen_output = 0 prefer_column_vectors = 0 print_empty_dimensions = 0 treat_neg_dim_as_zero = 1 warn_function_name_clash = 0 whitespace_in_literal_matrix = "traditional" |
--verbose
-V
--version
-v
file
Octave also includes several built-in variables that contain information about the command line, including the number of arguments and all of the options.
octave --no-line-editing --silent |
argv would be a string vector with the elements
--no-line-editing and --silent.
If you write an executable Octave script, argv will contain the
list of arguments passed to the script. see section 2.6 Executable Octave Programs.
program_invocation_name is automatically set to the name that was
typed at the shell prompt to run Octave, and the value of
program_name is automatically set to the final component of
program_invocation_name. For example, if you typed
`/usr/local/bin/octave' to start Octave,
program_invocation_name would have the value
"/usr/local/bin/octave", and program_name would
have the value "octave".
If executing a script from the command line (e.g., octave foo.m)
or using an executable Octave script, the program name is set to the
name of the script. See section 2.6 Executable Octave Programs for an example of
how to create an executable Octave script.
Here is an example of using these variables to reproduce Octave's command line.
printf ("%s", program_name);
for i = 1:nargin
printf (" %s", argv(i,:));
endfor
printf ("\n");
|
See section 8.1 Index Expressions for an explanation of how to properly index
arrays of strings and substrings in Octave, and See section 11.1 Defining Functions
for information about the variable nargin.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
| webmaster donations bookstore | delorie software privacy |
| Copyright © 2003 by The Free Software Foundation | Updated Jun 2003 |