Commit 024243c
authored
argparse: Don't add default for required actions in DefaultsHelpFormatter
For actions with required=True, the ArgumentDefaultsHelpFormatter would always add a " (default: None)" to the end of the help text.
Since that's a bit misleading, it is removed with this commit.1 parent e0449b9 commit 024243c
1 file changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
722 | 726 | | |
723 | 727 | | |
724 | 728 | | |
| |||
0 commit comments