fixed getopts issue on ts-7370