Hi there, I'm winkidney:), Recently when I work on a cli auto-generating task, I tryed "click" and "argparse" to handle it.
But I have to write a library myself to do this job finally. I wish this library helps you :) Project Github Repo: https://github.com/winkidney/cmdtree Why CmdTree? Alternatives: click library argparse library But when you should choose cmdtree? If you need: + fully sub-command support(not group in click) + Higher-level api support(compare to argparse) + More arg-type support(compare to argparse) + decorators has no side-effect on function call You may be a proper user of CmdTree Best wishes -- https://mail.python.org/mailman/listinfo/python-list