You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
custom prefixes for argparse.BooleanOptionalAction #119377
In general, there's a lot going on in function signature to .add_argument already, I'm not sure that adding more keyword args is really going to help here.
Also, note that the currently hardcoded values have a fundamental issue with custom prefix_chars to ArgumentParser.
Activity
serhiy-storchaka commentedon Oct 26, 2024
This looks like reasonable request. But what API do you want?
mpkocher commentedon Jun 29, 2025
In general, there's a lot going on in function signature to
.add_argumentalready, I'm not sure that adding more keyword args is really going to help here.Also, note that the currently hardcoded values have a fundamental issue with custom
prefix_charstoArgumentParser.Perhaps, just documenting a recipe for this use case is reasonable.