Similar lib I made for Python: https://pypi.org/project/func-argparse/

The nice thing with Python is that I implemented a parser from a function signature, and it also works for NamedTuple.

The advantage wrt to other python parser is that it uses the type annotations, instead of guessing

func-argparse seems much like https://pypi.org/project/argh/ the inspiration for the Nim https://github.com/c-blake/cligen which can source its "pseudo specification" from either a proc signature or a type/object definition.