tui-newscript offers now a getopts example and uses the  as shell for new scripts.