I'm trying to use getoptions in shell functions I source without spawning subshells.
Maybe I'm missing sth obvious (still learning shell scripting),
but I can't configure it to just return error code in case of errors.
It always call exit
and leaves whole shell.