Merge 3.6: Issue #28409: regrtest: fix the parser of command line arguments.