This fixes a regression introduced in the commit for issue #15302, which switched regrtest from getopt to argparse.
This is the first step in refactoring regrtest to use argparse. The regrtest module's main() function still expects a getopt-style return value rather than an argparse.Namespace instance.