Have been using getopt for some time. I am looking into the possibility of having two argument values for an option. Is this good and possible to do this with getopt. An example would help.
Have done some tests and figured out that doing
myfunc -S 13 21
gives
opts: -S '13' -- '21'
where
opts=$( getopt -o "$shortopts" -l "$longopts" -n "${0##*/}" -- "$@" )
Thusly getopt is incapable of accepting myfunc -S 13 21.