新手问题 Ruby 解析命令行参数时有什么支持子命令的好办法吗

YanhaoMo · January 11, 2018 · Last by qinix replied at January 11, 2018 · 1049 hits

貌似 optparse 并不能很好的支持子命令,看到一个示例是这么写的 https://gist.github.com/rkumar/445735 ,但是这个写法很蛋疼,还要自己去组织 help 的内容,请问有什么更好的方案吗?

YanhaoMo closed this topic. 13 Feb 18:17
You need to Sign in before reply, if you don't have an account, please Sign up first.