Commit db7f8bd
Fix argparse conflict for duplicate TypedDict field short aliases
When multiple TypedDicts in a function signature share the same field
name (e.g. credentials_secret in both aws_s3_config and
azure_blob_storage_config), the CLI auto-generation creates duplicate
short flags (--credentials-secret), causing an argparse error.
Track registered flags and only add the short alias if it hasn't
already been claimed by a previous TypedDict field.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5ac0bb4 commit db7f8bd
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
726 | 730 | | |
727 | 731 | | |
728 | 732 | | |
| |||
738 | 742 | | |
739 | 743 | | |
740 | 744 | | |
741 | | - | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
742 | 750 | | |
743 | 751 | | |
744 | 752 | | |
| 753 | + | |
745 | 754 | | |
746 | 755 | | |
747 | 756 | | |
| |||
752 | 761 | | |
753 | 762 | | |
754 | 763 | | |
| 764 | + | |
0 commit comments