<p>I highly recommend trying <a href="https://github.com/jawher/mow.cli">https://github.com/jawher/mow.cli</a></p>
<p>Our project (<a href="https://pki.io">https://pki.io</a>) was using docopt, but the requirements changed and docopt wasn't flexible enough to cope. I looked at alternatives such as codegangsta/cli and spf13/cobra but each had their own disadvantages.</p>
<p>After about a week I came across mow.cli. So far it has been fantastic. It supports subcommands, isn't too verbose, scopes things nicely within functions, the generated help is decent and it is very flexible whilst remaining easy and intuitive to use.</p>
<p>Just thought I'd mention it :D</p>
<hr/>**评论:**<br/><br/>LowValueTarget: <pre><p>At first glance it looks extremely similar to codegangsta's cli. I'll check it out</p></pre>HectorJ: <pre><p>Link for the lazy : <a href="https://github.com/codegangsta/cli">https://github.com/codegangsta/cli</a></p></pre>zeroXten: <pre><p>Yeah, not sure if it is a fork, but the API is heavily inspired by it at least. I found it in a discussion about codegansta... can't remember where though.</p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传