Skip to content

Commit

Permalink
minor update to usage descriptor for prabsolute option
Browse files Browse the repository at this point in the history
  • Loading branch information
neocotic committed May 6, 2013
1 parent 724ce6f commit 4c9fdae
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ $ md -l .

-h, --help output usage information
-V, --version output the version number
-a, --absolute always use absolute URLs for links
-a, --absolute always use absolute URLs for links and images
-b, --base <url> set base URL to resolve relative URLs from
-d, --debug print additional debug information
-e, --eval pass a string from the command line as input
Expand Down
2 changes: 1 addition & 1 deletion docs/command.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
letting the user know why.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nx">exit</span> <span class="mi">1</span><span class="p">,</span> <span class="nx">err</span></pre></div> </td> </tr> <tr id="section-27"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-27">&#182;</a> </div> <p>Parse the options that could have been provided at runtime.</p> </td> <td class="code"> <div class="highlight"><pre><span class="nv">parseOptions = </span><span class="nf">-&gt;</span></pre></div> </td> </tr> <tr id="section-28"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-28">&#182;</a> </div> <p>Parse the specified options/switches/flags/whatever.</p> </td> <td class="code"> <div class="highlight"><pre> <span class="nx">program</span>
<span class="p">.</span><span class="nx">version</span><span class="p">(</span><span class="nx">md</span><span class="p">.</span><span class="nx">version</span><span class="p">)</span>
<span class="p">.</span><span class="nx">usage</span><span class="p">(</span><span class="s">&#39;Usage: md [options] [ -e html | &lt;file ...&gt; ]&#39;</span><span class="p">)</span>
<span class="p">.</span><span class="nx">option</span><span class="p">(</span><span class="s">&#39;-a, --absolute&#39;</span><span class="p">,</span> <span class="s">&#39;always use absolute URLs for links&#39;</span><span class="p">)</span>
<span class="p">.</span><span class="nx">option</span><span class="p">(</span><span class="s">&#39;-a, --absolute&#39;</span><span class="p">,</span> <span class="s">&#39;always use absolute URLs for links and images&#39;</span><span class="p">)</span>
<span class="p">.</span><span class="nx">option</span><span class="p">(</span><span class="s">&#39;-b, --base &lt;url&gt;&#39;</span><span class="p">,</span> <span class="s">&#39;set base URL to resolve relative URLs from&#39;</span><span class="p">)</span>
<span class="p">.</span><span class="nx">option</span><span class="p">(</span><span class="s">&#39;-d, --debug&#39;</span><span class="p">,</span> <span class="s">&#39;print additional debug information&#39;</span><span class="p">)</span>
<span class="p">.</span><span class="nx">option</span><span class="p">(</span><span class="s">&#39;-e, --eval&#39;</span><span class="p">,</span> <span class="s">&#39;pass a string from the command line as input&#39;</span><span class="p">)</span>
Expand Down
2 changes: 1 addition & 1 deletion lib/command.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/md.1
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ systems to provide a complete command line utility.

.TP 15
.B \-a/\-\-absolute
Always use absolute URLs for converted links.
Always use absolute URLs for converted links and
images.

.HP
.B \-b/\-\-base
Expand Down
2 changes: 1 addition & 1 deletion src/command.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ parseOptions = ->
program
.version(md.version)
.usage('Usage: md [options] [ -e html | <file ...> ]')
.option('-a, --absolute', 'always use absolute URLs for links')
.option('-a, --absolute', 'always use absolute URLs for links and images')
.option('-b, --base <url>', 'set base URL to resolve relative URLs from')
.option('-d, --debug', 'print additional debug information')
.option('-e, --eval', 'pass a string from the command line as input')
Expand Down
2 changes: 1 addition & 1 deletion test/cli_test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ USAGE = """
-h, --help output usage information
-V, --version output the version number
-a, --absolute always use absolute URLs for links
-a, --absolute always use absolute URLs for links and images
-b, --base <url> set base URL to resolve relative URLs from
-d, --debug print additional debug information
-e, --eval pass a string from the command line as input
Expand Down

0 comments on commit 4c9fdae

Please sign in to comment.