Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 2
    +1 I was just going to comment on the question: Save yourself the trouble. Skip argparse and use typer. Commented Nov 15, 2023 at 19:40
  • This is a good answer, however it doesn't fit my specific usecase; see edit, what I wanted to clarify was too much to write as a comment. As a sidenote, perhaps since it's late here, I don't understand the pattern you're describing; should I model the arguments of get_default_argparser with classes each one, or should I have a "central class" that describes the intended behaviour (as noted in my question)? Commented Nov 15, 2023 at 20:05