Skip to content

Commit

Permalink
Update v2 docs for 2.0.0-beta3
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyBooth committed Jun 30, 2017
1 parent b1b34d3 commit ebe8493
Show file tree
Hide file tree
Showing 10 changed files with 3,492 additions and 1,059 deletions.
9 changes: 6 additions & 3 deletions docs/v2/annotated-source/command.html
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,10 @@ <h1>command.coffee</h1>
sourceCode = []
notSources = {}
watchedDirs = {}
optionParser = <span class="hljs-literal">null</span></pre></div></div>
optionParser = <span class="hljs-literal">null</span>

exports.buildCSOptionParser = buildCSOptionParser = <span class="hljs-function">-&gt;</span>
<span class="hljs-keyword">new</span> optparse.OptionParser SWITCHES, BANNER</pre></div></div>

</li>

Expand All @@ -256,6 +259,7 @@ <h1>command.coffee</h1>
</div>

<div class="content"><div class='highlight'><pre>exports.run = <span class="hljs-function">-&gt;</span>
optionParser = buildCSOptionParser()
parseOptions()</pre></div></div>

</li>
Expand Down Expand Up @@ -771,7 +775,6 @@ <h1>command.coffee</h1>
</div>

<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">parseOptions</span> = -&gt;</span>
optionParser = <span class="hljs-keyword">new</span> optparse.OptionParser SWITCHES, BANNER
o = opts = optionParser.parse process.argv[<span class="hljs-number">2.</span>.]
o.compile <span class="hljs-keyword">or</span>= !!o.output
o.run = <span class="hljs-keyword">not</span> (o.compile <span class="hljs-keyword">or</span> o.<span class="hljs-built_in">print</span> <span class="hljs-keyword">or</span> o.map)
Expand Down Expand Up @@ -856,7 +859,7 @@ <h1>command.coffee</h1>
</div>

<div class="content"><div class='highlight'><pre><span class="hljs-function"><span class="hljs-title">usage</span> = -&gt;</span>
printLine (<span class="hljs-keyword">new</span> optparse.OptionParser SWITCHES, BANNER).help()</pre></div></div>
printLine optionParser.help()</pre></div></div>

</li>

Expand Down
Loading

0 comments on commit ebe8493

Please sign in to comment.