summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric Beust <cedric@beust.com>2017-02-13 09:27:15 -0800
committerCedric Beust <cedric@beust.com>2017-02-13 09:27:15 -0800
commitde424929d1003028f97f3d0f283551db97dba291 (patch)
tree0dfd2afd991ebfcae0cfb0c15da6aef990515898
parent9c652daf9012d9820f04e4326c63775d1650e075 (diff)
downloadjcommander-de424929d1003028f97f3d0f283551db97dba291.tar.gz
Doc fix.
-rw-r--r--doc/index.adoc2
-rw-r--r--doc/index.html8
2 files changed, 5 insertions, 5 deletions
diff --git a/doc/index.adoc b/doc/index.adoc
index 6df1b35..c3d996b 100644
--- a/doc/index.adoc
+++ b/doc/index.adoc
@@ -911,10 +911,10 @@ class MainParams {
----
The example above specifies a delegate parameter Delegate which is then referenced in MainParams. You only need to add a `MainParams` object to your
+JCommander configuration in order to use the delegate:
[source,java]
----
-JCommander configuration in order to use the delegate:
MainParams p = new MainParams();
new JCommander(p).parse("-v", "-port", "1234");
Assert.assertTrue(p.isVerbose);
diff --git a/doc/index.html b/doc/index.html
index 3f0d92e..f043eac 100644
--- a/doc/index.html
+++ b/doc/index.html
@@ -1863,12 +1863,12 @@ class MainParams {
</div>
</div>
<div class="paragraph">
-<p>The example above specifies a delegate parameter Delegate which is then referenced in MainParams. You only need to add a <code>MainParams</code> object to your</p>
+<p>The example above specifies a delegate parameter Delegate which is then referenced in MainParams. You only need to add a <code>MainParams</code> object to your
+JCommander configuration in order to use the delegate:</p>
</div>
<div class="listingblock">
<div class="content">
-<pre class="prettyprint highlight"><code class="language-java" data-lang="java">JCommander configuration in order to use the delegate:
-MainParams p = new MainParams();
+<pre class="prettyprint highlight"><code class="language-java" data-lang="java">MainParams p = new MainParams();
new JCommander(p).parse("-v", "-port", "1234");
Assert.assertTrue(p.isVerbose);
Assert.assertEquals(p.delegate.port, 1234);</code></pre>
@@ -2021,7 +2021,7 @@ new Args().with {
</div>
<div id="footer">
<div id="footer-text">
-Last updated 2017-02-12 09:47:37 Pacific Standard Time
+Last updated 2017-02-13 09:26:44 PST
</div>
</div>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css">