Skip to content

Commit

Permalink
Fix for duplicate arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Aug 26, 2023
1 parent 9612e01 commit f432d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tyro/_argparse_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ def _recursive_arg_search(
):
if score < 0.8:
break
if score < 0.9 and i >= 1:
if score < 0.9 and i >= 1 and prev_argument_flag != argument.flag:
break

# Add a header before the first similar argument.
Expand Down

0 comments on commit f432d58

Please sign in to comment.