> What I think the author is looking for is a combination of argparse and Pydantic
Not quite that, but https://typer.tiangolo.com/ is fully type driven.