getopts tr expansion