Python initially offers (through the standard library) two packages for creating automatic documenting interfaces for command line tools: optparse and argparse .
The docs say optparse deprecated, and argparse replaces it while maintaining some backward compatibility. Although, argparse is not so easy to use and third-party libraries are created.
Check out the docopt and video about it. cliff is another possibility.
To write line-oriented command-line interpreters, you can find a useful Python cmd module.
Finally, I want to note that docopt and cliff are not an alternative to Python / s, as you requested, but only the pair I found.
Paolo source share