Re:Gooey: Turn almost any Python command line program into a...
by voidnap on Monday December 11, 2023 @11:09AM
(#38601807)
Gee if only there was a way to reuse logic within a program.
> arguments are defined as type annotations in the sub-command function itself
So you duplicate logic in your type definitions instead of as instructions. Whatever makes you happy i guess.
Typer completely eliminates this potential bug, because the arguments are defined as type annotations in the sub-command function itself.