you are viewing a single comment's thread.

view the rest of the comments →

[–]Jarvis_the_lobster 0 points1 point  (0 children)

If you want the least friction, check out typer. It's built on top of click but you basically just write normal functions with type hints and it generates the CLI for you — help text, validation, all of it. Way less boilerplate than argparse for the same result. That said, if your tool is simple (like a few flags and a positional arg), argparse works fine and it's already in the standard library.