From 0bf605f684f07f8ecc9c7be682b6d0bfaae0bee7 Mon Sep 17 00:00:00 2001 From: Brent Yi Date: Sat, 19 Nov 2022 19:38:31 -0800 Subject: [PATCH] Add group title assert --- tyro/_parsers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tyro/_parsers.py b/tyro/_parsers.py index 3b7e7ff5..7ca39daa 100644 --- a/tyro/_parsers.py +++ b/tyro/_parsers.py @@ -242,6 +242,7 @@ def apply( self.apply_args(parser) # Break some API boundaries to rename the "optional arguments" => "arguments". + assert parser._action_groups[1].title == "optional arguments" parser._action_groups[1].title = "arguments" return leaves