Octave Equivalent Python Optparse / getopt

Is there an octave equivalent of Python Optparse / getopt?

Sort of:

[parsed_args, remaining] = optparse(argv());

I run octave scripts from the command line.

./foo.m -p lease -g ive -m e -o ptparse
+3
source share
1 answer

argv()will return the command line arguments passed to Octave as an array of string cells. For this array of cells should be simple. Could you be more specific to the functionality optparse(). What operating system do you work on?

+2
source

Source: https://habr.com/ru/post/1780895/


All Articles