◐ Shell
clean mode source ↗

gh-109475: argument get the value is `--` by 180909 · Pull Request #110959 · python/cpython

Expand Up @@ -5405,6 +5405,12 @@ def test_zero_or_more_optional(self): args = parser.parse_args([]) self.assertEqual(NS(x=[]), args)
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 Expand Down