gh-109475: argument get the value is `--` by 180909 · Pull Request #110959 · python/cpython
def test_double_dash(self): parser = argparse.ArgumentParser() parser.add_argument('--foo') args = parser.parse_args(['--foo=--']) self.assertEqual(NS(foo='--'), args)
# =========================== # parse_intermixed_args tests