<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>
