Skip to content

Commit

Permalink
Add group title assert
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Nov 20, 2022
1 parent 31f8b27 commit 0bf605f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tyro/_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0bf605f

Please sign in to comment.