You might want to look at Google’s python fire which makes this sort of thing obsolete.
https://github.com/google/python-fire
Just comment your code and get pretty arguments.
https://github.com/google/python-fire
Just comment your code and get pretty arguments.
It's a great example of a project that only works (without codegen / build toolchain-support) for a dynamic language.