__argv__
- :
args =__argv__()¶ Return the command line arguments as a column cell array of strings.
For an ordinary interactive or --eval session the result holds every token of the command line, starting with the name used to launch the program. For example, invoking
nexus --no-line-editing --eval "argv ()"
yields
ans = { [1,1] = nexus [2,1] = --no-line-editing [3,1] = --eval [4,1] = argv () }When an executable script is run (for example through a
#!interpreter line), the vector is narrowed to the arguments passed to the script itself, with the script name removed.